Skip to content

Commit

Permalink
Updated Rector to commit 1561c90c6b9ef040532a34afa1c2f581ad5dfbc1
Browse files Browse the repository at this point in the history
rectorphp/rector-src@1561c90 [DeadCode] Clean up instanceof check on RemoveDeadInstanceOfRector.php (#6096)
  • Loading branch information
TomasVotruba committed Jul 1, 2024
1 parent 78890de commit 23b3490
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 0 additions & 4 deletions rules/DeadCode/Rector/If_/RemoveDeadInstanceOfRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use PhpParser\Node\Expr\PropertyFetch;
use PhpParser\Node\Expr\StaticPropertyFetch;
use PhpParser\Node\Name;
use PhpParser\Node\Name\FullyQualified;
use PhpParser\Node\Stmt;
use PhpParser\Node\Stmt\Expression;
use PhpParser\Node\Stmt\If_;
Expand Down Expand Up @@ -142,9 +141,6 @@ private function isInstanceofTheSameType(Instanceof_ $instanceof) : ?bool
if ($classReflection instanceof ClassReflection && $classReflection->isTrait()) {
return null;
}
if (!$instanceof->class instanceof FullyQualified) {
return null;
}
$exprType = $this->nodeTypeResolver->getNativeType($instanceof->expr);
if (!$exprType instanceof ObjectType) {
return null;
Expand Down
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '3c2100b3a8d2372094135efa9c4d0433078337b5';
public const PACKAGE_VERSION = '1561c90c6b9ef040532a34afa1c2f581ad5dfbc1';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-07-01 09:15:52';
public const RELEASE_DATE = '2024-07-01 10:15:34';
/**
* @var int
*/
Expand Down

0 comments on commit 23b3490

Please sign in to comment.