Skip to content

Commit 6e7e473

Browse files
staabmsebastianbergmann
authored andcommitted
Fix "Strict comparison using !== between ReflectionClass and null will always evaluate to true."
1 parent fa8e828 commit 6e7e473

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Framework/MockObject/Generator/Generator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ private function generateCodeForTestDoubleClass(string $type, bool $mockObject,
776776

777777
if (is_array($explicitMethods)) {
778778
foreach ($explicitMethods as $methodName) {
779-
if ($class !== null && $class->hasMethod($methodName)) {
779+
if ($class->hasMethod($methodName)) {
780780
$method = $class->getMethod($methodName);
781781

782782
if ($this->canMethodBeDoubled($method)) {

0 commit comments

Comments
 (0)