Skip to content

Commit

Permalink
Updated Rector to commit 4dd889abe4cabdbe4235578a10a7d6d4b64b5f55
Browse files Browse the repository at this point in the history
rectorphp/rector-src@4dd889a [Reflection] No need to lookup properties on interfaces (#6145)
  • Loading branch information
TomasVotruba committed Jul 14, 2024
1 parent a07218c commit 8c2cb60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Application/VersionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ final class VersionResolver
* @api
* @var string
*/
public const PACKAGE_VERSION = 'e9b4c647f9f40adc9e1859cd620c3632281e3384';
public const PACKAGE_VERSION = '4dd889abe4cabdbe4235578a10a7d6d4b64b5f55';
/**
* @api
* @var string
*/
public const RELEASE_DATE = '2024-07-15 00:03:58';
public const RELEASE_DATE = '2024-07-15 00:10:17';
/**
* @var int
*/
Expand Down
3 changes: 2 additions & 1 deletion src/Reflection/ReflectionResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ public function resolveClassReflectionSourceObject($node) : ?ClassReflection
}
$nativeReflection = $classReflection->getNativeReflection();
$properties = $nativeReflection->getProperties();
$ancestors = \array_merge($classReflection->getParents(), $classReflection->getInterfaces());
// no need to lookup properties on interfaces
$ancestors = $classReflection->getParents();
foreach ($properties as $property) {
if ($property->getName() !== $propertyName) {
continue;
Expand Down

0 comments on commit 8c2cb60

Please sign in to comment.