Skip to content

Commit 9534590

Browse files
authored
Fix unit test due to new PHPStan release (#931)
* Fix unit test due to new PHPStan release * re-run rector
1 parent 5673dc2 commit 9534590

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rules/Configs/Rector/Closure/ServiceSettersToSettersAutodiscoveryRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private function createAbsolutePathConcat(string $classFilePath): Concat
218218
{
219219
$relativeDirectoryPath = $this->filesystem->makePathRelative(
220220
dirname($classFilePath),
221-
dirname((string) $this->getFile()->getFilePath())
221+
dirname($this->getFile()->getFilePath())
222222
);
223223

224224
$distConstFetch = new ConstFetch(new Name('__DIR__'));

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)