From 05e38eadbeb3de19e5b26003c2b401e00bb71df4 Mon Sep 17 00:00:00 2001 From: polo Date: Sun, 18 Oct 2026 00:08:23 +0200 Subject: =?UTF-8?q?sortie=20de=20vendor=20du=20d=C3=A9p=C3=B4t,=20oubli=20?= =?UTF-8?q?dans=20config-template.ini?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collections/src/Expr/CompositeExpression.php | 70 ---------------------- 1 file changed, 70 deletions(-) delete mode 100644 vendor/doctrine/collections/src/Expr/CompositeExpression.php (limited to 'vendor/doctrine/collections/src/Expr/CompositeExpression.php') diff --git a/vendor/doctrine/collections/src/Expr/CompositeExpression.php b/vendor/doctrine/collections/src/Expr/CompositeExpression.php deleted file mode 100644 index b7b4544..0000000 --- a/vendor/doctrine/collections/src/Expr/CompositeExpression.php +++ /dev/null @@ -1,70 +0,0 @@ - */ - private array $expressions = []; - - /** - * @param Expression[] $expressions - * - * @throws RuntimeException - */ - public function __construct(private readonly string $type, array $expressions) - { - foreach ($expressions as $expr) { - if ($expr instanceof Value) { - throw new RuntimeException('Values are not supported expressions as children of and/or expressions.'); - } - - if (! ($expr instanceof Expression)) { - throw new RuntimeException('No expression given to CompositeExpression.'); - } - - $this->expressions[] = $expr; - } - - if ($type === self::TYPE_NOT && count($this->expressions) !== 1) { - throw new RuntimeException('Not expression only allows one expression as child.'); - } - } - - /** - * Returns the list of expressions nested in this composite. - * - * @return list - */ - public function getExpressionList() - { - return $this->expressions; - } - - /** @return string */ - public function getType() - { - return $this->type; - } - - /** - * {@inheritDoc} - */ - public function visit(ExpressionVisitor $visitor) - { - return $visitor->walkCompositeExpression($this); - } -} -- cgit v1.2.3