Interface PHPStan\Type\OperatorTypeSpecifyingExtension

This is the extension interface to implement if you want to describe how arithmetic operators like +, -, *, ^, / should infer types for PHP extensions that overload the behaviour, like GMP. To register it in the configuration file use the phpstan.broker.operatorTypeSpecifyingExtension service tag: ``` services: - class: App\PHPStan\MyExtension tags: - phpstan.broker.operatorTypeSpecifyingExtension

  • PHPStan\Type\OperatorTypeSpecifyingExtension
    • PHPStan\Type\Php\BcMathNumberOperatorTypeSpecifyingExtension implements OperatorTypeSpecifyingExtension
Methods