Skip to content

Commit 47fa3d2

Browse files
committed
Leverage array_is_list(), get_debug_type(), is_countable(), is_iterable(), str_contains() and str_starts_with()
1 parent dbe8938 commit 47fa3d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Test/Constraint/CrawlerSelectorTextContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ protected function matches($crawler): bool
5656
$this->hasNode = true;
5757
$this->nodeText = $crawler->text(null, true);
5858

59-
return false !== mb_strpos($this->nodeText, $this->expectedText);
59+
return str_contains($this->nodeText, $this->expectedText);
6060
}
6161

6262
/**

0 commit comments

Comments
 (0)