Remove usage of search() === to contains()

This commit is contained in:
2025-01-16 12:20:22 +11:00
parent 960e0de5c8
commit 293f1ab9ce
5 changed files with 8 additions and 8 deletions

View File

@@ -115,7 +115,7 @@ final class MatchingRule extends Base {
{
$name = trim($name);
if ($this->used_by_attrs->search($name) === FALSE)
if (! $this->used_by_attrs->contains($name))
$this->used_by_attrs->push($name);
}