Skip to content

Commit

Permalink
Implicitly nullable parameter declarations deprecated in PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
fivefilters committed Apr 21, 2024
1 parent 433a15f commit 151275e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nodes/NodeTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ public function createNode($originalNode, $tagName)
*
* @return bool
*/
public function hasAncestorTag($tagName, $maxDepth = 3, callable $filterFn = null)
public function hasAncestorTag($tagName, $maxDepth = 3, ?callable $filterFn = null)
{
$depth = 0;
$node = $this;
Expand Down

0 comments on commit 151275e

Please sign in to comment.