Skip to content

Commit 7a6d913

Browse files
authored
Merge pull request #60 from timmit-nl/fix-for-php8.1-error
Fix for php8.1 error
2 parents 3a1f377 + c545188 commit 7a6d913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/WSDL/Lexer/Tokenizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public function lex(string $string): array
5454
$offset = 0;
5555
while (isset($string[$offset])) {
5656
foreach (self::$tokenMap as $regex => $token) {
57-
if (preg_match($regex, $string, $matches, null, $offset)) {
57+
if (preg_match($regex, $string, $matches, 0, $offset)) {
5858
$tokens[] = TokenObject::create($token, trim($matches[0]));
5959
$offset += strlen($matches[0]);
6060
continue 2;

0 commit comments

Comments
 (0)