Skip to content

Commit cb2d7b6

Browse files
committed
[DowngradePhp84] Add DowngradeArrayFindRector
1 parent b74feac commit cb2d7b6

File tree

1 file changed

+1
-1
lines changed
  • rules-tests/DowngradePhp84/Rector/Expression/DowngradeArrayAnyRector/Fixture

1 file changed

+1
-1
lines changed

rules-tests/DowngradePhp84/Rector/Expression/DowngradeArrayAnyRector/Fixture/with_key.php.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class WithKey
66
{
77
public function run(array $animals)
88
{
9-
$found = array_all($animals, fn($animal, $key) => str_starts_with($animal, 'c') && $key > 0);
9+
$found = array_any($animals, fn($animal, $key) => str_starts_with($animal, 'c') && $key > 0);
1010
}
1111
}
1212

0 commit comments

Comments
 (0)