Skip to content

Commit

Permalink
require ext-dom && phpdoc fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
shadz3rg committed Jul 27, 2019
1 parent 744266e commit a7845ea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"php": ">=5.3.0",
"ext-xsl": "*",
"ext-zip": "*",
"shadz3rg/lexer": "^1.0"
"ext-dom": "*",
"shadz3rg/lexer": "^1.0",
},
"authors": [
{
Expand Down
3 changes: 3 additions & 0 deletions src/PHPStamp/Templator.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Templator
*
* @param string $cachePath Writable path to store compiled template.
* @param array $brackets Customizable placeholder brackets.
* @throws Exception\InvalidArgumentException
*/
public function __construct($cachePath, $brackets = array('[[', ']]'))
{
Expand All @@ -65,6 +66,7 @@ public function __construct($cachePath, $brackets = array('[[', ']]'))
* @param DocumentInterface $document Document to render.
* @param array $values Multidimensional array with values to replace placeholders.
* @return Result
* @throws Exception\InvalidArgumentException
*/
public function render(DocumentInterface $document, array $values)
{
Expand All @@ -88,6 +90,7 @@ public function render(DocumentInterface $document, array $values)
*
* @param DocumentInterface $document Document to render.
* @return \DOMDocument XSL stylesheet.
* @throws Exception\InvalidArgumentException
*/
private function getTemplate(DocumentInterface $document)
{
Expand Down

0 comments on commit a7845ea

Please sign in to comment.