mirror of
https://github.com/linuxserver/Heimdall.git
synced 2025-12-05 14:33:49 +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) {
|
||||
|
||||
@@ -37,7 +37,7 @@ class TentativeTypes
|
||||
'DateTime' => [
|
||||
'__wakeup' => 'void',
|
||||
'__set_state' => 'DateTime',
|
||||
'createFromImmutable' => 'DateTime',
|
||||
'createFromImmutable' => 'static',
|
||||
'createFromFormat' => 'DateTime|false',
|
||||
'getLastErrors' => 'array|false',
|
||||
'format' => 'string',
|
||||
@@ -72,7 +72,7 @@ class TentativeTypes
|
||||
'setDate' => 'DateTimeImmutable',
|
||||
'setISODate' => 'DateTimeImmutable',
|
||||
'setTimestamp' => 'DateTimeImmutable',
|
||||
'createFromMutable' => 'DateTimeImmutable',
|
||||
'createFromMutable' => 'static',
|
||||
],
|
||||
'DateTimeZone' => [
|
||||
'getName' => 'string',
|
||||
@@ -1102,6 +1102,8 @@ class TentativeTypes
|
||||
'isDot' => 'bool',
|
||||
'rewind' => 'void',
|
||||
'valid' => 'bool',
|
||||
'key' => 'mixed',
|
||||
'current' => 'mixed',
|
||||
'next' => 'void',
|
||||
'seek' => 'void',
|
||||
],
|
||||
@@ -1148,8 +1150,8 @@ class TentativeTypes
|
||||
'getFlags' => 'int',
|
||||
'setMaxLineLen' => 'void',
|
||||
'getMaxLineLen' => 'int',
|
||||
'hasChildren' => 'bool',
|
||||
'getChildren' => '?RecursiveIterator',
|
||||
'hasChildren' => 'false',
|
||||
'getChildren' => 'null',
|
||||
'seek' => 'void',
|
||||
'getCurrentLine' => 'string',
|
||||
],
|
||||
@@ -1238,7 +1240,7 @@ class TentativeTypes
|
||||
'current' => 'never',
|
||||
'next' => 'void',
|
||||
'key' => 'never',
|
||||
'valid' => 'bool',
|
||||
'valid' => 'false',
|
||||
'rewind' => 'void',
|
||||
],
|
||||
'CallbackFilterIterator' => [
|
||||
|
||||
@@ -225,7 +225,7 @@ header .container { display: flex; justify-content: space-between; }
|
||||
.trace-line + .trace-line { border-top: var(--border); }
|
||||
.trace-line:hover { background: var(--base-1); }
|
||||
.trace-line a { color: var(--base-6); }
|
||||
.trace-line .icon { opacity: .4; position: absolute; left: 10px; top: 11px; }
|
||||
.trace-line .icon { opacity: .4; position: absolute; left: 10px; }
|
||||
.trace-line .icon svg { fill: var(--base-5); height: 16px; width: 16px; }
|
||||
.trace-line .icon.icon-copy { left: auto; top: auto; padding-left: 5px; display: none }
|
||||
.trace-line:hover .icon.icon-copy:not(.hidden) { display: inline-block }
|
||||
|
||||
0
vendor/symfony/error-handler/Resources/bin/extract-tentative-return-types.php
vendored
Normal file → Executable file
0
vendor/symfony/error-handler/Resources/bin/extract-tentative-return-types.php
vendored
Normal file → Executable file
0
vendor/symfony/error-handler/Resources/bin/patch-type-declarations
vendored
Normal file → Executable file
0
vendor/symfony/error-handler/Resources/bin/patch-type-declarations
vendored
Normal file → Executable file
Reference in New Issue
Block a user