Skip to content

Commit

Permalink
Fix for PHP 8.4 (#227)
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 authored Jul 10, 2024
1 parent 76744c7 commit 45f3ac1
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 @@ -340,7 +340,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 45f3ac1

Please sign in to comment.