Skip to content

Commit

Permalink
Updated Rector to commit ba1cad35898880f6de97c9743aab96d2ac90ba73
Browse files Browse the repository at this point in the history
rectorphp/rector-src@ba1cad3 [Privatization] Fix reprint with attribute on FinalizeTestCaseClassRector (#5557)
  • Loading branch information
TomasVotruba committed Feb 4, 2024
1 parent e394be7 commit 8e25ebe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use PhpParser\Node;
use PhpParser\Node\Stmt\Class_;
use PHPStan\Reflection\ReflectionProvider;
use Rector\NodeTypeResolver\Node\AttributeKey;
use Rector\Privatization\NodeManipulator\VisibilityManipulator;
use Rector\Rector\AbstractRector;
use Symplify\RuleDocGenerator\ValueObject\CodeSample\CodeSample;
Expand Down Expand Up @@ -75,6 +76,9 @@ public function refactor(Node $node) : ?Node
if (!$classReflection->isSubclassOf('PHPUnit\\Framework\\TestCase')) {
return null;
}
if ($node->attrGroups !== []) {
$node->setAttribute(AttributeKey::ORIGINAL_NODE, null);
}
$this->visibilityManipulator->makeFinal($node);
return $node;
}
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 = '2dd395167cdc146a1b566bae9c5c2f2885e55c16';
public const PACKAGE_VERSION = 'ba1cad35898880f6de97c9743aab96d2ac90ba73';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-02-05 03:44:33';
public const RELEASE_DATE = '2024-02-05 04:08:15';
/**
* @var int
*/
Expand Down

0 comments on commit 8e25ebe

Please sign in to comment.