Skip to content

Commit a191550

Browse files
Skip checking return types on PHP <= 7.2
1 parent 24279f9 commit a191550

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

DebugClassLoader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ public function checkAnnotations(\ReflectionClass $refl, string $class): array
612612
$this->patchMethod($method, $returnType, $declaringFile, $normalizedType);
613613
}
614614

615-
if (false === strpos($doc, '@deprecated') && strncmp($ns, $declaringClass, $len)) {
615+
if (false === strpos($doc, '* @deprecated') && strncmp($ns, $declaringClass, $len)) {
616616
if ($canAddReturnType && 'docblock' === $this->patchTypes['force'] && false === strpos($method->getFileName(), \DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR)) {
617617
$this->patchMethod($method, $returnType, $declaringFile, $normalizedType);
618618
} elseif ('' !== $declaringClass && $this->patchTypes['deprecations']) {

0 commit comments

Comments
 (0)