File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
rules/Php74/Rector/Property Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -113,8 +113,7 @@ private function isReadonlyProperty(Property $property) : bool
113113 }
114114 // @readonly annotation
115115 $ phpDocInfo = $ this ->phpDocInfoFactory ->createFromNodeOrEmpty ($ property );
116- $ tags = $ phpDocInfo ->getTagsByName ('@readonly ' );
117- return $ tags !== [];
116+ return $ phpDocInfo ->hasByName ('@readonly ' );
118117 }
119118 private function isReadonlyClass (Class_ $ class ) : bool
120119 {
@@ -124,7 +123,6 @@ private function isReadonlyClass(Class_ $class) : bool
124123 }
125124 // @immutable annotation
126125 $ phpDocInfo = $ this ->phpDocInfoFactory ->createFromNodeOrEmpty ($ class );
127- $ tags = $ phpDocInfo ->getTagsByName ('@immutable ' );
128- return $ tags !== [];
126+ return $ phpDocInfo ->hasByName ('@immutable ' );
129127 }
130128}
Original file line number Diff line number Diff line change @@ -19,12 +19,12 @@ final class VersionResolver
1919 * @api
2020 * @var string
2121 */
22- public const PACKAGE_VERSION = '3f1ccb3ea131997a435fc2211620e968c6732220 ' ;
22+ public const PACKAGE_VERSION = 'e5037921c408b717756a3997e8111ae3729aef08 ' ;
2323 /**
2424 * @api
2525 * @var string
2626 */
27- public const RELEASE_DATE = '2024-04-03 18: 19:17 ' ;
27+ public const RELEASE_DATE = '2024-04-03 19:03:00 ' ;
2828 /**
2929 * @var int
3030 */
You can’t perform that action at this time.
0 commit comments