Skip to content

Commit 865d35e

Browse files
ArshidArshid
authored andcommitted
MbStrContainsRector
1 parent 8df0a1c commit 865d35e

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

config/set/php80.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
use Rector\Php80\Rector\FuncCall\ClassOnObjectRector;
2121
use Rector\Php80\Rector\Identical\StrEndsWithRector;
2222
use Rector\Php80\Rector\Identical\StrStartsWithRector;
23+
use Rector\Php80\Rector\NotIdentical\MbStrContainsRector;
2324
use Rector\Php80\Rector\NotIdentical\StrContainsRector;
2425
use Rector\Php80\Rector\Switch_\ChangeSwitchToMatchRector;
2526
use Rector\Php80\Rector\Ternary\GetDebugTypeRector;
@@ -45,6 +46,7 @@
4546
ClassOnThisVariableObjectRector::class,
4647
ConsistentImplodeRector::class,
4748
OptionalParametersAfterRequiredRector::class,
49+
MbStrContainsRector::class,
4850
]);
4951

5052
$rectorConfig

rules/Php80/NodeResolver/StrFalseComparisonResolver.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ public function __construct(
2020
) {
2121
}
2222

23+
/**
24+
* @param string[] $oldStrFuncNames
25+
*/
2326
public function resolve(Identical | NotIdentical | Equal | NotEqual $expr, array $oldStrFuncNames): ?FuncCall
2427
{
2528
if ($this->valueResolver->isFalse($expr->left)) {

0 commit comments

Comments
 (0)