Skip to content

Commit a210882

Browse files
committed
Updated Rector to commit e5037921c408b717756a3997e8111ae3729aef08
rectorphp/rector-src@e503792 Cleanup: use hasByName() over getTagsByName() (#5797)
1 parent 77aab2e commit a210882

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

rules/Php74/Rector/Property/RestoreDefaultNullToNullableTypePropertyRector.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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
}

src/Application/VersionResolver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
*/

0 commit comments

Comments
 (0)