1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Type;
4:
5: use PhpParser\Node\Expr\FuncCall;
6: use PHPStan\Analyser\Scope;
7: use PHPStan\Reflection\FunctionReflection;
8:
9: /** @api */
10: interface DynamicFunctionThrowTypeExtension
11: {
12:
13: public function isFunctionSupported(FunctionReflection $functionReflection): bool;
14:
15: public function getThrowTypeFromFunctionCall(FunctionReflection $functionReflection, FuncCall $funcCall, Scope $scope): ?Type;
16:
17: }
18: