Skip to content

Commit 87af091

Browse files
committed
Fix unit test due to new PHPStan release
1 parent cf3936e commit 87af091

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rules/Twig134/Rector/Return_/SimpleFunctionAndFilterRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ private function processArrayItem(ArrayItem $arrayItem, Type $newNodeType): bool
168168

169169
foreach (self::OLD_TO_NEW_CLASSES as $oldClass => $newClass) {
170170
$oldClassObjectType = new ObjectType($oldClass);
171-
if (! $oldClassObjectType->equals($newNodeType)) {
171+
if (! $newNodeType->equals($oldClassObjectType)) {
172172
continue;
173173
}
174174

0 commit comments

Comments
 (0)