Skip to content

Commit

Permalink
Updated Rector to commit 2f86b39349f1bbd76de8bde10e4cb24bd019744e
Browse files Browse the repository at this point in the history
rectorphp/rector-src@2f86b39 [Php82] Handle has only readonly properties but not all promoted property on ReadOnlyClassRector (#6129)
  • Loading branch information
TomasVotruba committed Jul 7, 2024
1 parent 008a7dc commit 2d231b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions rules/Php82/Rector/Class_/ReadOnlyClassRector.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ private function shouldSkipClass(Class_ $class) : bool
private function shouldSkipParams(array $params) : bool
{
foreach ($params as $param) {
// has non-property promotion, skip
if (!$this->visibilityManipulator->hasVisibility($param, Visibility::READONLY)) {
// has non-readonly property promotion
if (!$this->visibilityManipulator->hasVisibility($param, Visibility::READONLY) && $param->flags !== 0) {
return \true;
}
// type is missing, invalid syntax
Expand Down
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 = '18ad257a10325cb75dd0080971ddda000c65b4b9';
public const PACKAGE_VERSION = '2f86b39349f1bbd76de8bde10e4cb24bd019744e';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-07-07 00:30:11';
public const RELEASE_DATE = '2024-07-07 23:13:08';
/**
* @var int
*/
Expand Down

0 comments on commit 2d231b6

Please sign in to comment.