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

This commit is contained in:
2025-01-16 12:20:22 +11:00
parent 6e860d05dc
commit de0f9b7e8f
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);
}