Skip to content

Commit 8d399fd

Browse files
1 parent 0a2f51f commit 8d399fd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Framework/MockObject/Generator.php

+4
Original file line numberDiff line numberDiff line change
@@ -1039,6 +1039,10 @@ private function isConstructor(\ReflectionMethod $method): bool
10391039
return true;
10401040
}
10411041

1042+
if (\PHP_MAJOR_VERSION >= 8) {
1043+
return false;
1044+
}
1045+
10421046
$className = \strtolower($method->getDeclaringClass()->getName());
10431047

10441048
return $methodName === $className;

0 commit comments

Comments
 (0)