Skip to content

Commit

Permalink
Fix for PHP 8.4
Browse files Browse the repository at this point in the history
> Deprecated: Gt\CssXPath\Translator::preg_match_collated(): Implicitly marking parameter $transform as nullable is deprecated, the explicit nullable type must be used instead in ./phpgt/cssxpath/src/Translator.php on line 279
  • Loading branch information
Alkarex committed Jul 8, 2024
1 parent 4fbe420 commit 40ba91b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ protected function convertSingleSelector(string $css):string {
protected function preg_match_collated(
string $regex,
string $string,
callable $transform = null
?callable $transform = null
):array {
preg_match_all(
$regex,
Expand Down

0 comments on commit 40ba91b

Please sign in to comment.