Skip to content

Commit

Permalink
Change method name string to constant
Browse files Browse the repository at this point in the history
  • Loading branch information
koriym committed Sep 10, 2023
1 parent a805754 commit 2f3950c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sl-src/CacheReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getClassAnnotations(ReflectionClass $class) // @phpstan-ignore-l
return $this->loadedAnnotations[$cacheKey];
}

$annots = $this->fetchFromCache($cacheKey, $class, 'getClassAnnotations', $class);
$annots = $this->fetchFromCache($cacheKey, $class, __FUNCTION__, $class);

return $this->loadedAnnotations[$cacheKey] = $annots;
}
Expand Down Expand Up @@ -105,7 +105,7 @@ public function getMethodAnnotations(ReflectionMethod $method)
return $this->loadedAnnotations[$cacheKey];
}

$annots = $this->fetchFromCache($cacheKey, $class, 'getMethodAnnotations', $method);
$annots = $this->fetchFromCache($cacheKey, $class, __FUNCTION__, $method);

return $this->loadedAnnotations[$cacheKey] = $annots;
}
Expand Down

0 comments on commit 2f3950c

Please sign in to comment.