mirror of
https://github.com/linuxserver/Heimdall.git
synced 2026-02-22 04:30:32 +09:00
Update dependencies
This commit is contained in:
@@ -368,9 +368,12 @@ class DebugClassLoader
|
||||
|
||||
$parent = get_parent_class($class) ?: null;
|
||||
self::$returnTypes[$class] = [];
|
||||
$classIsTemplate = false;
|
||||
|
||||
// Detect annotations on the class
|
||||
if ($doc = $this->parsePhpDoc($refl)) {
|
||||
$classIsTemplate = isset($doc['template']);
|
||||
|
||||
foreach (['final', 'deprecated', 'internal'] as $annotation) {
|
||||
if (null !== $description = $doc[$annotation][0] ?? null) {
|
||||
self::${$annotation}[$class] = '' !== $description ? ' '.$description.(preg_match('/[.!]$/', $description) ? '' : '.') : '.';
|
||||
@@ -514,6 +517,10 @@ class DebugClassLoader
|
||||
// To read method annotations
|
||||
$doc = $this->parsePhpDoc($method);
|
||||
|
||||
if (($classIsTemplate || isset($doc['template'])) && $method->hasReturnType()) {
|
||||
unset($doc['return']);
|
||||
}
|
||||
|
||||
if (isset(self::$annotatedParameters[$class][$method->name])) {
|
||||
$definedParameters = [];
|
||||
foreach ($method->getParameters() as $parameter) {
|
||||
|
||||
Reference in New Issue
Block a user