Skip to content

Commit 1ca79aa

Browse files
committed
revert hallucination
1 parent d0df2b0 commit 1ca79aa

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎src/Rules/MissingTypehintCheck.php‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,10 @@ public function getNonGenericObjectTypesWithGenericClass(Type $type): array
199199
$templateTypesList .= sprintf(' (%d-%d required)', $requiredTemplateTypesCount, $templateTypesCount);
200200
}
201201

202-
$name = sprintf('%s %s', strtolower($classReflection->getClassTypeDescription()), $classReflection->getDisplayName(false));
203-
$objectTypes[$name . "\0" . $templateTypesList] = [$name, $templateTypesList];
202+
$objectTypes[] = [
203+
sprintf('%s %s', strtolower($classReflection->getClassTypeDescription()), $classReflection->getDisplayName(false)),
204+
$templateTypesList,
205+
];
204206
return $type;
205207
}
206208

0 commit comments

Comments
 (0)