Skip to content

Commit

Permalink
fixup! fixup! skip bool instanceof
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Apr 6, 2021
1 parent 3eadd2b commit 206b2c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,5 @@

return static function (ContainerConfigurator $containerConfigurator): void {
$services = $containerConfigurator->services();

$services->set(ChangeReadOnlyPropertyWithDefaultValueToConstantRector::class);
};
1 change: 1 addition & 0 deletions rules/Privatization/NodeFactory/ClassConstantFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ public function createFromProperty(Property $property): ClassConst
$classConst->flags = $property->flags & ~ Class_::MODIFIER_STATIC;

$phpDocInfo = $this->phpDocInfoFactory->createFromNodeOrEmpty($property);
$phpDocInfo->markAsChanged();
$classConst->setAttribute(AttributeKey::PHP_DOC_INFO, $phpDocInfo);

return $classConst;
Expand Down

0 comments on commit 206b2c7

Please sign in to comment.