mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
Updated Rector to commit 369f16a2640c381138bc12151109047ae5759f32
369f16a264
[Downgradephp81][DowngradePhp80] Handle No scope crash on DowngradeSetAccessibleReflectionPropertyRector + DowngradeMatchToSwitchRector (#5183)
This commit is contained in:
parent
2e784e585d
commit
079ad82aa5
@ -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
|
||||
*/
|
||||
|
@ -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() === [];
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user