Skip to content

Commit

Permalink
[Privatization] Skip abstract class in PrivatizeLocalPropertyToPrivat…
Browse files Browse the repository at this point in the history
…ePropertyRector
  • Loading branch information
TomasVotruba committed Jun 12, 2021
1 parent 8ebc4fe commit 09251da
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 64 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?php

namespace Rector\Tests\Privatization\Rector\Property\PrivatizeLocalPropertyToPrivatePropertyRector\Fixture;

abstract class SkipAbstractClass
{
public $some;
}

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ private function shouldSkipClass(ClassLike $classLike): bool
return true;
}

if (! $classLike->isAbstract()) {
return false;
if ($classLike->isAbstract()) {
return true;
}

return $this->isOpenSourceProjectType();
Expand Down

0 comments on commit 09251da

Please sign in to comment.