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

Fix mb_stripos offset parameter for php 8.1 #98

Merged
merged 2 commits into from
Jan 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Constraint/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function __construct($string, $uri = '')
protected function matches($other) : bool
{
$other = $this->normalizeText($other);
return mb_stripos($other, $this->string, null, 'UTF-8') !== false;
return mb_stripos($other, $this->string, 0, 'UTF-8') !== false;
}

/**
Expand Down