Skip to content

Commit 06265a2

Browse files
ArshidArshid
authored andcommitted
DowngradeMbStrContainsRector
1 parent 081e073 commit 06265a2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

rules/DowngradePhp80/Rector/FuncCall/DowngradeMbStrContainsRector.php

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

71+
if ($funcCall->isFirstClassCallable()) {
72+
return null;
73+
}
74+
7175
if (! $funcCall instanceof FuncCall) {
7276
return null;
7377
}

0 commit comments

Comments
 (0)