Skip to content

Commit

Permalink
Updated Rector to commit 385d423d4f2b5577bfb5d70f6e41e09f3460a057
Browse files Browse the repository at this point in the history
rectorphp/rector-src@385d423 [CodeQuality] Handle with other attributes on DynamicDocBlockPropertyToNativePropertyRector (#6381)
  • Loading branch information
TomasVotruba committed Oct 12, 2024
1 parent 254c38f commit 80d5259
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,15 @@ public function refactor(Node $node) : ?Node
return null;
}
// 1. remove dynamic attribute, most likely any
$node->attrGroups = [];
foreach ($node->attrGroups as $key => $attrGroup) {
foreach ($attrGroup->attrs as $attr) {
if ($attr->name->toString() === 'AllowDynamicProperties') {
unset($node->attrGroups[$key]);
continue 2;
}
}
}
$node->attrGroups = \array_values($node->attrGroups);
$newProperties = $this->createNewPropertyFromPropertyTagValueNodes($propertyPhpDocTagNodes, $node);
// remove property tags
foreach ($propertyPhpDocTagNodes as $propertyPhpDocTagNode) {
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 = 'd180b8d7363f508a4e9c6931c327c65aed5ff6ee';
public const PACKAGE_VERSION = '385d423d4f2b5577bfb5d70f6e41e09f3460a057';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-10-12 23:13:40';
public const RELEASE_DATE = '2024-10-12 23:24:13';
/**
* @var int
*/
Expand Down

0 comments on commit 80d5259

Please sign in to comment.