File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Framework/MockObject/Generator Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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 ,
You can’t perform that action at this time.
0 commit comments