Skip to content

Commit 16b2d72

Browse files
committed
Fixed potential cache issue
1 parent e8bb833 commit 16b2d72

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Reflection/ClassReflection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ public function getMethod(string $methodName, ClassMemberAccessAnswerer $scope):
325325
{
326326
$key = $methodName;
327327
if ($scope->isInClass()) {
328-
$key = sprintf('%s-%s', $key, $scope->getClassReflection()->getName());
328+
$key = sprintf('%s-%s', $key, $scope->getClassReflection()->getCacheKey());
329329
}
330330
if (!isset($this->methods[$key])) {
331331
foreach ($this->methodsClassReflectionExtensions as $extension) {
@@ -391,7 +391,7 @@ public function getProperty(string $propertyName, ClassMemberAccessAnswerer $sco
391391
{
392392
$key = $propertyName;
393393
if ($scope->isInClass()) {
394-
$key = sprintf('%s-%s', $key, $scope->getClassReflection()->getName());
394+
$key = sprintf('%s-%s', $key, $scope->getClassReflection()->getCacheKey());
395395
}
396396
if (!isset($this->properties[$key])) {
397397
foreach ($this->propertiesClassReflectionExtensions as $extension) {

0 commit comments

Comments
 (0)