Updated Rector to commit e5037921c408b717756a3997e8111ae3729aef08

e5037921c4 Cleanup: use hasByName() over getTagsByName() (#5797)
This commit is contained in:
Tomas Votruba 2024-04-03 12:05:35 +00:00
parent 77aab2e2a3
commit a210882e56
2 changed files with 4 additions and 6 deletions

View File

@ -113,8 +113,7 @@ CODE_SAMPLE
} }
// @readonly annotation // @readonly annotation
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($property); $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($property);
$tags = $phpDocInfo->getTagsByName('@readonly'); return $phpDocInfo->hasByName('@readonly');
return $tags !== [];
} }
private function isReadonlyClass(Class_ $class) : bool private function isReadonlyClass(Class_ $class) : bool
{ {
@ -124,7 +123,6 @@ CODE_SAMPLE
} }
// @immutable annotation // @immutable annotation
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($class); $phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($class);
$tags = $phpDocInfo->getTagsByName('@immutable'); return $phpDocInfo->hasByName('@immutable');
return $tags !== [];
} }
} }

View File

@ -19,12 +19,12 @@ final class VersionResolver
* @api * @api
* @var string * @var string
*/ */
public const PACKAGE_VERSION = '3f1ccb3ea131997a435fc2211620e968c6732220'; public const PACKAGE_VERSION = 'e5037921c408b717756a3997e8111ae3729aef08';
/** /**
* @api * @api
* @var string * @var string
*/ */
public const RELEASE_DATE = '2024-04-03 18:19:17'; public const RELEASE_DATE = '2024-04-03 19:03:00';
/** /**
* @var int * @var int
*/ */