This is the interface type node resolver extensions implement for custom PHPDoc types.
To register it in the configuration file use the phpstan.phpDoc.typeNodeResolverExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.phpDoc.typeNodeResolverExtension
Learn more: https://phpstan.org/developing-extensions/custom-phpdoc-types
Methods | ||
---|---|---|
public
|
resolve(TypeNode $typeNode, NameScope $nameScope): ?Type
|
# |