Skip to content

Commit 659dc0f

Browse files
Fix
1 parent 07eb616 commit 659dc0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Framework/MockObject/Generator/Generator.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ final class Generator
6464
use TemplateLoader;
6565

6666
/**
67-
* @var non-empty-array<non-empty-string, true>
67+
* @var null|non-empty-array<non-empty-string, true>
6868
*/
69-
private static $excludedMethodNames = [];
69+
private static ?array $excludedMethodNames = null;
7070

7171
/**
7272
* @var array<non-empty-string, DoubledClass>
@@ -640,7 +640,7 @@ private function canMethodBeDoubled(ReflectionMethod $method): bool
640640

641641
private function isMethodNameExcluded(string $name): bool
642642
{
643-
if (self::$excludedMethodNames === []) {
643+
if (self::$excludedMethodNames === null) {
644644
self::$excludedMethodNames = [
645645
'__CLASS__' => true,
646646
'__DIR__' => true,

0 commit comments

Comments
 (0)