Skip to content

Commit

Permalink
fix PHP 8.4 test
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek authored and Wirone committed Jan 9, 2024
1 parent 6cc4ebd commit 4ab7156
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/PregTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static function providePatternValidationCases(): iterable

yield 'php_version_dependent' => ['([\\R])', false, PregException::class, '/Compilation failed: escape sequence is invalid/'];

yield 'null_byte_injection' => ['()'."\0", null, PregException::class, ' (NUL is not a valid modifier|Null byte in regex) '];
yield 'null_byte_injection' => ['()'."\0", null, PregException::class, '/NUL( byte)? is not a valid modifier|Null byte in regex/'];
}

/**
Expand Down

0 comments on commit 4ab7156

Please sign in to comment.