Skip to content

Commit 23b3490

Browse files
committed
Updated Rector to commit 1561c90c6b9ef040532a34afa1c2f581ad5dfbc1
rectorphp/rector-src@1561c90 [DeadCode] Clean up instanceof check on RemoveDeadInstanceOfRector.php (#6096)
1 parent 78890de commit 23b3490

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use PhpParser\Node\Expr\PropertyFetch;
1414
use PhpParser\Node\Expr\StaticPropertyFetch;
1515
use PhpParser\Node\Name;
16-
use PhpParser\Node\Name\FullyQualified;
1716
use PhpParser\Node\Stmt;
1817
use PhpParser\Node\Stmt\Expression;
1918
use PhpParser\Node\Stmt\If_;
@@ -142,9 +141,6 @@ private function isInstanceofTheSameType(Instanceof_ $instanceof) : ?bool
142141
if ($classReflection instanceof ClassReflection && $classReflection->isTrait()) {
143142
return null;
144143
}
145-
if (!$instanceof->class instanceof FullyQualified) {
146-
return null;
147-
}
148144
$exprType = $this->nodeTypeResolver->getNativeType($instanceof->expr);
149145
if (!$exprType instanceof ObjectType) {
150146
return null;

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ final class VersionResolver
1919
* @api
2020
* @var string
2121
*/
22-
public const PACKAGE_VERSION = '3c2100b3a8d2372094135efa9c4d0433078337b5';
22+
public const PACKAGE_VERSION = '1561c90c6b9ef040532a34afa1c2f581ad5dfbc1';
2323
/**
2424
* @api
2525
* @var string
2626
*/
27-
public const RELEASE_DATE = '2024-07-01 09:15:52';
27+
public const RELEASE_DATE = '2024-07-01 10:15:34';
2828
/**
2929
* @var int
3030
*/

0 commit comments

Comments
 (0)