mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit fbba8606a56e0643a7b3d1ae9af5fded082eea06
fbba8606a5
[Php80] Skip ObjectType on ChangeSwitchToMatchRector (#5719)
This commit is contained in:
parent
d9fea10f3e
commit
ea97f93f74
|
@ -9,6 +9,7 @@ use PhpParser\Node\Expr\Assign;
|
|||
use PhpParser\Node\Stmt\Expression;
|
||||
use PhpParser\Node\Stmt\Return_;
|
||||
use PhpParser\Node\Stmt\Switch_;
|
||||
use PHPStan\Type\ObjectType;
|
||||
use Rector\Contract\PhpParser\Node\StmtsAwareInterface;
|
||||
use Rector\Php80\NodeAnalyzer\MatchSwitchAnalyzer;
|
||||
use Rector\Php80\NodeFactory\MatchFactory;
|
||||
|
@ -101,6 +102,9 @@ CODE_SAMPLE
|
|||
continue;
|
||||
}
|
||||
$isReturn = $this->matchSwitchAnalyzer->isReturnCondsAndExprs($condAndExprs);
|
||||
if ($this->nodeTypeResolver->getType($stmt->cond) instanceof ObjectType) {
|
||||
continue;
|
||||
}
|
||||
$matchResult = $this->matchFactory->createFromCondAndExprs($stmt->cond, $condAndExprs, $nextStmt);
|
||||
if (!$matchResult instanceof MatchResult) {
|
||||
continue;
|
||||
|
|
|
@ -19,12 +19,12 @@ final class VersionResolver
|
|||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const PACKAGE_VERSION = 'd01d16e9d8c7225e5a45cb2534b1b338f93e5740';
|
||||
public const PACKAGE_VERSION = 'fbba8606a56e0643a7b3d1ae9af5fded082eea06';
|
||||
/**
|
||||
* @api
|
||||
* @var string
|
||||
*/
|
||||
public const RELEASE_DATE = '2024-03-14 10:11:24';
|
||||
public const RELEASE_DATE = '2024-03-14 15:25:09';
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue