Browse Source

CI: Fix PHP 8.4 (#7702)

Co-authored-by: Michael Voříšek <mvorisek@mvorisek.cz>
Greg Korba 1 year ago
parent
commit
2dc246acd9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tests/PregTest.php

+ 1 - 1
tests/PregTest.php

@@ -66,7 +66,7 @@ final class PregTest extends TestCase
 
         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/'];
     }
 
     /**