Skip to content

Commit 6aed826

Browse files
Add some missing return types to internal/final classes
1 parent 102080f commit 6aed826

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

DebugClassLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,12 +534,12 @@ public function checkAnnotations(\ReflectionClass $refl, string $class): array
534534
$this->patchTypes['force'] = $forcePatchTypes ?: 'docblock';
535535
}
536536

537-
$canAddReturnType = false !== strpos($refl->getFileName(), \DIRECTORY_SEPARATOR.'Tests'.\DIRECTORY_SEPARATOR)
537+
$canAddReturnType = false !== stripos($method->getFileName(), \DIRECTORY_SEPARATOR.'Tests'.\DIRECTORY_SEPARATOR)
538538
|| $refl->isFinal()
539539
|| $method->isFinal()
540540
|| $method->isPrivate()
541-
|| ('' === (self::$internal[$class] ?? null) && !$refl->isAbstract())
542-
|| '' === (self::$final[$class] ?? null)
541+
|| ('.' === (self::$internal[$class] ?? null) && !$refl->isAbstract())
542+
|| '.' === (self::$final[$class] ?? null)
543543
|| '' === ($doc['final'][0] ?? null)
544544
|| '' === ($doc['internal'][0] ?? null)
545545
;

0 commit comments

Comments
 (0)