Skip to content

Commit 6564ce0

Browse files
committed
Make ObjectType::equals() compatible PHPStan 2.1.x-dev on DowngradeCovariantReturnTypeRector
1 parent 1557822 commit 6564ce0

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"require-dev": {
1010
"phpstan/extension-installer": "^1.4",
11-
"phpstan/phpstan": "^2.1.33",
11+
"phpstan/phpstan": "2.1.x-dev",
1212
"phpstan/phpstan-webmozart-assert": "^2.0",
1313
"phpunit/phpunit": "^11.5",
1414
"rector/jack": "^0.5.1",
15-
"rector/rector-src": "dev-main",
15+
"rector/rector-src": "dev-test-21xdev",
1616
"rector/swiss-knife": "^2.3",
1717
"rector/type-perfect": "^2.1",
1818
"symplify/easy-coding-standard": "^13.0",

rules/DowngradePhp74/Rector/ClassMethod/DowngradeCovariantReturnTypeRector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ private function resolveMatchingReturnType(
236236
continue;
237237
}
238238

239-
if ($parentReturnType->equals($returnType)) {
239+
if ($returnType->equals($parentReturnType)) {
240240
continue;
241241
}
242242

0 commit comments

Comments
 (0)