diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/ASTException.php')
-rw-r--r-- | vendor/doctrine/orm/src/Query/AST/ASTException.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/ASTException.php b/vendor/doctrine/orm/src/Query/AST/ASTException.php new file mode 100644 index 0000000..1ef890a --- /dev/null +++ b/vendor/doctrine/orm/src/Query/AST/ASTException.php | |||
@@ -0,0 +1,20 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Query\AST; | ||
6 | |||
7 | use Doctrine\ORM\Query\QueryException; | ||
8 | |||
9 | use function get_debug_type; | ||
10 | |||
11 | /** | ||
12 | * Base exception class for AST exceptions. | ||
13 | */ | ||
14 | class ASTException extends QueryException | ||
15 | { | ||
16 | public static function noDispatchForNode(Node $node): self | ||
17 | { | ||
18 | return new self('Double-dispatch for node ' . get_debug_type($node) . ' is not supported.'); | ||
19 | } | ||
20 | } | ||