Skip to content

Commit 1e18cd7

Browse files
ArshidArshid
authored andcommitted
DowngradeMbStrContainsRector
1 parent 257f57a commit 1e18cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rules/DowngradePhp80/Rector/FuncCall/DowngradeMbStrContainsRector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ public function refactor(Node $node): Identical | NotIdentical | null
6868
{
6969
$funcCall = $this->matchStrContainsOrNotStrContains($node);
7070

71-
if (!$funcCall->isFirstClassCallable()) {
71+
if (! $funcCall instanceof FuncCall) {
7272
return null;
7373
}
7474

75-
if (! $funcCall instanceof FuncCall) {
75+
if ($funcCall->isFirstClassCallable()) {
7676
return null;
7777
}
7878

0 commit comments

Comments
 (0)