Skip to content

Commit

Permalink
Merge pull request #328 from srjlewis/v3
Browse files Browse the repository at this point in the history
Compatability with php 8.4
  • Loading branch information
ragboyjr authored Nov 2, 2024
2 parents ec07462 + d906ab0 commit fadf8aa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
}
],
"require" : {
"php": "^7.0|^8.0"
"php": "^7.1|^8.0"
},
"require-dev": {
"mikey179/vfsstream": "^1.6",
Expand Down
6 changes: 3 additions & 3 deletions src/Template/Func.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ public function getCallback()

/**
* Call the function.
* @param Template $template
* @param array $arguments
* @param Template|null $template
* @param array $arguments
* @return mixed
*/
public function call(Template $template = null, $arguments = array())
public function call(?Template $template = null, $arguments = array())
{
if (is_array($this->callback) and
isset($this->callback[0]) and
Expand Down
6 changes: 3 additions & 3 deletions src/Template/Template.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ public function __toString()

/**
* Assign or get template data.
* @param array $data
* @return mixed
* @param array|null $data
* @return array|void
*/
public function data(array $data = null)
public function data(?array $data = null)
{
if (is_null($data)) {
return $this->data;
Expand Down

0 comments on commit fadf8aa

Please sign in to comment.