Skip to content

Commit

Permalink
Updated Rector to commit e5037921c408b717756a3997e8111ae3729aef08
Browse files Browse the repository at this point in the history
rectorphp/rector-src@e503792 Cleanup: use hasByName() over getTagsByName() (#5797)
  • Loading branch information
TomasVotruba committed Apr 3, 2024
1 parent 77aab2e commit a210882
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,7 @@ private function isReadonlyProperty(Property $property) : bool
}
// @readonly annotation
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($property);
$tags = $phpDocInfo->getTagsByName('@readonly');
return $tags !== [];
return $phpDocInfo->hasByName('@readonly');
}
private function isReadonlyClass(Class_ $class) : bool
{
Expand All @@ -124,7 +123,6 @@ private function isReadonlyClass(Class_ $class) : bool
}
// @immutable annotation
$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($class);
$tags = $phpDocInfo->getTagsByName('@immutable');
return $tags !== [];
return $phpDocInfo->hasByName('@immutable');
}
}
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = '3f1ccb3ea131997a435fc2211620e968c6732220';
public const PACKAGE_VERSION = 'e5037921c408b717756a3997e8111ae3729aef08';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-04-03 18:19:17';
public const RELEASE_DATE = '2024-04-03 19:03:00';
/**
* @var int
*/
Expand Down

0 comments on commit a210882

Please sign in to comment.