This commit is contained in:
Tomas Votruba 2021-03-09 01:04:39 +01:00 committed by GitHub
parent dc5dfe228b
commit 79d3d98e14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -37,7 +37,7 @@
"nette/utils": "^3.2",
"nikic/php-parser": "^4.10.4",
"phpstan/phpdoc-parser": "^0.4.9",
"phpstan/phpstan": "^0.12.80",
"phpstan/phpstan": "^0.12.81",
"phpstan/phpstan-phpunit": "^0.12.17",
"psr/simple-cache": "^1.0",
"sebastian/diff": "^4.0.4",

View File

@ -13,6 +13,7 @@ use PHPStan\Type\Generic\TemplateTypeMap;
use PHPStan\Type\Generic\TemplateTypeParameterStrategy;
use PHPStan\Type\Generic\TemplateTypeScope;
use PHPStan\Type\Generic\TemplateTypeVariance;
use PHPStan\Type\ObjectType;
use PHPStan\Type\TypeWithClassName;
final class ExtendsTemplateTypeMapFallbackFactory
@ -101,7 +102,7 @@ final class ExtendsTemplateTypeMapFallbackFactory
new TemplateTypeParameterStrategy(),
TemplateTypeVariance::createInvariant(),
$parentGenericTypeName,
$typeWithClassName->getClassName()
new ObjectType($typeWithClassName->getClassName())
);
}
}