Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jan 20, 2025
1 parent 074f489 commit feb6021
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use PhpParser\Node\Scalar\String_;
use Rector\PhpParser\Node\Value\ValueResolver;
use Rector\Rector\AbstractRector;
use Rector\Util\StringUtils;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

Expand Down Expand Up @@ -111,7 +112,7 @@ public function refactor(Node $node): ?Node
return null;
}

if (!in_array(Strings::match($includeValue, self::WINDOWS_DRIVE_REGEX), [null, []], true)) {
if (StringUtils::isMatch($includeValue, self::WINDOWS_DRIVE_REGEX)) {
return null;
}

Expand Down

0 comments on commit feb6021

Please sign in to comment.