mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-29 11:33:33 +01:00
use private over protected
This commit is contained in:
parent
c8d082e906
commit
2c22f48321
@ -151,12 +151,14 @@ final class PropertyManipulator
|
||||
return $this->getProperty($propertyProperty)->isPrivate();
|
||||
}
|
||||
|
||||
protected function getProperty(PropertyProperty $propertyProperty): Property
|
||||
private function getProperty(PropertyProperty $propertyProperty): Property
|
||||
{
|
||||
$property = $propertyProperty->getAttribute(AttributeKey::PARENT_NODE);
|
||||
|
||||
if (! $property instanceof Property) {
|
||||
throw new ShouldNotHappenException('PropertyProperty should always have Property as parent');
|
||||
}
|
||||
|
||||
return $property;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user