This is the interface type-specifying extensions implement for functions.
To register it in the configuration file use the phpstan.typeSpecifier.functionTypeSpecifyingExtension
service tag:
services:
-
class: App\PHPStan\MyExtension
tags:
- phpstan.typeSpecifier.functionTypeSpecifyingExtension
Learn more: https://phpstan.org/developing-extensions/type-specifying-extensions
Methods | ||
---|---|---|
public
|
isFunctionSupported(FunctionReflection $functionReflection, FuncCall $node, TypeSpecifierContext $context): bool
|
# |
public
|
specifyTypes(
FunctionReflection $functionReflection,
FuncCall $node,
Scope $scope,
TypeSpecifierContext $context,
): SpecifiedTypes
|
# |