Skip to content

Commit

Permalink
[NodeAnalyzer] Remove unused $this->reflectionProvider->hasClass($cla…
Browse files Browse the repository at this point in the history
…ssName) check on PropertyPresenceChecker::getClassContextProperty() (#3693)
  • Loading branch information
samsonasik committed Apr 27, 2023
1 parent ae1f75a commit 2996a6e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/NodeAnalyzer/PropertyPresenceChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ public function getClassContextProperty(Class_ $class, PropertyMetadata $propert
return null;
}

if (! $this->reflectionProvider->hasClass($className)) {
return null;
}

$property = $class->getProperty($propertyMetadata->getName());
if ($property instanceof Property) {
return $property;
Expand Down

0 comments on commit 2996a6e

Please sign in to comment.