File tree 2 files changed +2
-2
lines changed
tests/PHPStan/Analyser/data
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -897,7 +897,7 @@ public function typeMapToList(TemplateTypeMap $typeMap): array
897
897
898
898
$ list = [];
899
899
foreach ($ resolvedPhpDoc ->getTemplateTags () as $ tag ) {
900
- $ list [] = $ typeMap ->getType ($ tag ->getName ()) ?? new ErrorType ();
900
+ $ list [] = $ typeMap ->getType ($ tag ->getName ()) ?? $ tag -> getBound ();
901
901
}
902
902
903
903
return $ list ;
Original file line number Diff line number Diff line change @@ -883,7 +883,7 @@ function cache1($t): void {
883
883
function newHandling (): void {
884
884
assertType ('PHPStan\Generics\FunctionsAssertType\C<mixed> ' , new C ());
885
885
assertType ('PHPStan\Generics\FunctionsAssertType\A<stdClass> ' , new A (new \stdClass ()));
886
- assertType ('PHPStan\Generics\FunctionsAssertType\A<*ERROR* > ' , new A ());
886
+ assertType ('PHPStan\Generics\FunctionsAssertType\A<mixed > ' , new A ());
887
887
}
888
888
889
889
/**
You can’t perform that action at this time.
0 commit comments