Updated Rector to commit 369f16a2640c381138bc12151109047ae5759f32

369f16a264 [Downgradephp81][DowngradePhp80] Handle No scope crash on DowngradeSetAccessibleReflectionPropertyRector + DowngradeMatchToSwitchRector (#5183)
This commit is contained in:
Tomas Votruba 2023-10-17 05:20:09 +00:00
parent 2e784e585d
commit 079ad82aa5
2 changed files with 6 additions and 3 deletions

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '11c66a7d12042656f37b27e3bba10f5b35582226';
public const PACKAGE_VERSION = '369f16a2640c381138bc12151109047ae5759f32';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2023-10-16 20:40:31';
public const RELEASE_DATE = '2023-10-17 12:17:16';
/**
* @var int
*/

View File

@ -66,6 +66,9 @@ final class RectifiedAnalyzer
if ($startTokenPos >= 0) {
return \true;
}
return !$node instanceof Stmt && $node->getAttributes() === [];
if ($node instanceof Stmt) {
return \array_keys($node->getAttributes()) === [AttributeKey::STMT_KEY];
}
return $node->getAttributes() === [];
}
}