Skip to content

Commit b547d3b

Browse files
Merge branch '4.4' into 5.2
* 4.4: Skip checking return types on PHP <= 7.2
2 parents 62d16f0 + a191550 commit b547d3b

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
@@ -611,7 +611,7 @@ public function checkAnnotations(\ReflectionClass $refl, string $class): array
611611
$this->patchMethod($method, $returnType, $declaringFile, $normalizedType);
612612
}
613613

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

0 commit comments

Comments
 (0)