mirror of https://github.com/rectorphp/rector.git
Updated Rector to commit ba1cad35898880f6de97c9743aab96d2ac90ba73
ba1cad3589
[Privatization] Fix reprint with attribute on FinalizeTestCaseClassRector (#5557)
This commit is contained in:
parent
e394be7dd2
commit
8e25ebe2a2
|
@ -6,6 +6,7 @@ namespace Rector\Privatization\Rector\Class_;
|
|||
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;
|
||||
|
@ -75,6 +76,9 @@ CODE_SAMPLE
|
|||
if (!$classReflection->isSubclassOf('PHPUnit\\Framework\\TestCase')) {
|
||||
return null;
|
||||
}
|
||||
if ($node->attrGroups !== []) {
|
||||
$node->setAttribute(AttributeKey::ORIGINAL_NODE, null);
|
||||
}
|
||||
$this->visibilityManipulator->makeFinal($node);
|
||||
return $node;
|
||||
}
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue