Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 7d6b1a5

Browse files
authored
Merge pull request #98 from jakubvojacek/jakubvojacek-patch-1
Fix mb_stripos offset parameter for php 8.1
2 parents c1c63eb + 0d7c0f0 commit 7d6b1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Constraint/Page.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public function __construct($string, $uri = '')
2525
protected function matches($other) : bool
2626
{
2727
$other = $this->normalizeText($other);
28-
return mb_stripos($other, $this->string, null, 'UTF-8') !== false;
28+
return mb_stripos($other, $this->string, 0, 'UTF-8') !== false;
2929
}
3030

3131
/**

0 commit comments

Comments
 (0)