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 --- vendor/doctrine/orm/src/Query/Expr/Andx.php | 32 -------- vendor/doctrine/orm/src/Query/Expr/Base.php | 96 ----------------------- vendor/doctrine/orm/src/Query/Expr/Comparison.php | 47 ----------- vendor/doctrine/orm/src/Query/Expr/Composite.php | 50 ------------ vendor/doctrine/orm/src/Query/Expr/From.php | 48 ------------ vendor/doctrine/orm/src/Query/Expr/Func.php | 48 ------------ vendor/doctrine/orm/src/Query/Expr/GroupBy.php | 25 ------ vendor/doctrine/orm/src/Query/Expr/Join.php | 77 ------------------ vendor/doctrine/orm/src/Query/Expr/Literal.php | 25 ------ vendor/doctrine/orm/src/Query/Expr/Math.php | 59 -------------- vendor/doctrine/orm/src/Query/Expr/OrderBy.php | 60 -------------- vendor/doctrine/orm/src/Query/Expr/Orx.php | 32 -------- vendor/doctrine/orm/src/Query/Expr/Select.php | 28 ------- 13 files changed, 627 deletions(-) delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Andx.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Base.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Comparison.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Composite.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/From.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Func.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/GroupBy.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Join.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Literal.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Math.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/OrderBy.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Orx.php delete mode 100644 vendor/doctrine/orm/src/Query/Expr/Select.php (limited to 'vendor/doctrine/orm/src/Query/Expr') diff --git a/vendor/doctrine/orm/src/Query/Expr/Andx.php b/vendor/doctrine/orm/src/Query/Expr/Andx.php deleted file mode 100644 index a20bcef..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Andx.php +++ /dev/null @@ -1,32 +0,0 @@ - */ - protected array $parts = []; - - /** @psalm-return list */ - public function getParts(): array - { - return $this->parts; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Base.php b/vendor/doctrine/orm/src/Query/Expr/Base.php deleted file mode 100644 index e0f2572..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Base.php +++ /dev/null @@ -1,96 +0,0 @@ - */ - protected array $allowedClasses = []; - - /** @var list */ - protected array $parts = []; - - public function __construct(mixed $args = []) - { - if (is_array($args) && array_key_exists(0, $args) && is_array($args[0])) { - $args = $args[0]; - } - - $this->addMultiple($args); - } - - /** - * @param string[]|object[]|string|object $args - * @psalm-param list|string|object $args - * - * @return $this - */ - public function addMultiple(array|string|object $args = []): static - { - foreach ((array) $args as $arg) { - $this->add($arg); - } - - return $this; - } - - /** - * @return $this - * - * @throws InvalidArgumentException - */ - public function add(mixed $arg): static - { - if ($arg !== null && (! $arg instanceof self || $arg->count() > 0)) { - // If we decide to keep Expr\Base instances, we can use this check - if (! is_string($arg) && ! in_array($arg::class, $this->allowedClasses, true)) { - throw new InvalidArgumentException(sprintf( - "Expression of type '%s' not allowed in this context.", - get_debug_type($arg), - )); - } - - $this->parts[] = $arg; - } - - return $this; - } - - /** @psalm-return 0|positive-int */ - public function count(): int - { - return count($this->parts); - } - - public function __toString(): string - { - if ($this->count() === 1) { - return (string) $this->parts[0]; - } - - return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Comparison.php b/vendor/doctrine/orm/src/Query/Expr/Comparison.php deleted file mode 100644 index ec8ef21..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Comparison.php +++ /dev/null @@ -1,47 +0,0 @@ -'; - final public const LT = '<'; - final public const LTE = '<='; - final public const GT = '>'; - final public const GTE = '>='; - - /** Creates a comparison expression with the given arguments. */ - public function __construct(protected mixed $leftExpr, protected string $operator, protected mixed $rightExpr) - { - } - - public function getLeftExpr(): mixed - { - return $this->leftExpr; - } - - public function getOperator(): string - { - return $this->operator; - } - - public function getRightExpr(): mixed - { - return $this->rightExpr; - } - - public function __toString(): string - { - return $this->leftExpr . ' ' . $this->operator . ' ' . $this->rightExpr; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Composite.php b/vendor/doctrine/orm/src/Query/Expr/Composite.php deleted file mode 100644 index f3007a7..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Composite.php +++ /dev/null @@ -1,50 +0,0 @@ -count() === 1) { - return (string) $this->parts[0]; - } - - $components = []; - - foreach ($this->parts as $part) { - $components[] = $this->processQueryPart($part); - } - - return implode($this->separator, $components); - } - - private function processQueryPart(string|Stringable $part): string - { - $queryPart = (string) $part; - - if (is_object($part) && $part instanceof self && $part->count() > 1) { - return $this->preSeparator . $queryPart . $this->postSeparator; - } - - // Fixes DDC-1237: User may have added a where item containing nested expression (with "OR" or "AND") - if (preg_match('/\s(OR|AND)\s/i', $queryPart)) { - return $this->preSeparator . $queryPart . $this->postSeparator; - } - - return $queryPart; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/From.php b/vendor/doctrine/orm/src/Query/Expr/From.php deleted file mode 100644 index 21af078..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/From.php +++ /dev/null @@ -1,48 +0,0 @@ -from; - } - - public function getAlias(): string - { - return $this->alias; - } - - public function getIndexBy(): string|null - { - return $this->indexBy; - } - - public function __toString(): string - { - return $this->from . ' ' . $this->alias . - ($this->indexBy ? ' INDEX BY ' . $this->indexBy : ''); - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Func.php b/vendor/doctrine/orm/src/Query/Expr/Func.php deleted file mode 100644 index cd9e8e0..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Func.php +++ /dev/null @@ -1,48 +0,0 @@ -|mixed $arguments - */ - public function __construct( - protected string $name, - mixed $arguments, - ) { - $this->arguments = (array) $arguments; - } - - public function getName(): string - { - return $this->name; - } - - /** @psalm-return list */ - public function getArguments(): array - { - return $this->arguments; - } - - public function __toString(): string - { - return $this->name . '(' . implode(', ', $this->arguments) . ')'; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/GroupBy.php b/vendor/doctrine/orm/src/Query/Expr/GroupBy.php deleted file mode 100644 index fa4625a..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/GroupBy.php +++ /dev/null @@ -1,25 +0,0 @@ - */ - protected array $parts = []; - - /** @psalm-return list */ - public function getParts(): array - { - return $this->parts; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Join.php b/vendor/doctrine/orm/src/Query/Expr/Join.php deleted file mode 100644 index c3b6dc9..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Join.php +++ /dev/null @@ -1,77 +0,0 @@ -joinType; - } - - public function getJoin(): string - { - return $this->join; - } - - public function getAlias(): string|null - { - return $this->alias; - } - - /** @psalm-return self::ON|self::WITH|null */ - public function getConditionType(): string|null - { - return $this->conditionType; - } - - public function getCondition(): string|Comparison|Composite|Func|null - { - return $this->condition; - } - - public function getIndexBy(): string|null - { - return $this->indexBy; - } - - public function __toString(): string - { - return strtoupper($this->joinType) . ' JOIN ' . $this->join - . ($this->alias ? ' ' . $this->alias : '') - . ($this->indexBy ? ' INDEX BY ' . $this->indexBy : '') - . ($this->condition ? ' ' . strtoupper($this->conditionType) . ' ' . $this->condition : ''); - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Literal.php b/vendor/doctrine/orm/src/Query/Expr/Literal.php deleted file mode 100644 index 0c13030..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Literal.php +++ /dev/null @@ -1,25 +0,0 @@ - */ - protected array $parts = []; - - /** @psalm-return list */ - public function getParts(): array - { - return $this->parts; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Math.php b/vendor/doctrine/orm/src/Query/Expr/Math.php deleted file mode 100644 index 05e0b39..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Math.php +++ /dev/null @@ -1,59 +0,0 @@ -leftExpr; - } - - public function getOperator(): string - { - return $this->operator; - } - - public function getRightExpr(): mixed - { - return $this->rightExpr; - } - - public function __toString(): string - { - // Adjusting Left Expression - $leftExpr = (string) $this->leftExpr; - - if ($this->leftExpr instanceof Math) { - $leftExpr = '(' . $leftExpr . ')'; - } - - // Adjusting Right Expression - $rightExpr = (string) $this->rightExpr; - - if ($this->rightExpr instanceof Math) { - $rightExpr = '(' . $rightExpr . ')'; - } - - return $leftExpr . ' ' . $this->operator . ' ' . $rightExpr; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/OrderBy.php b/vendor/doctrine/orm/src/Query/Expr/OrderBy.php deleted file mode 100644 index ac9e160..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/OrderBy.php +++ /dev/null @@ -1,60 +0,0 @@ - */ - protected array $parts = []; - - public function __construct( - string|null $sort = null, - string|null $order = null, - ) { - if ($sort) { - $this->add($sort, $order); - } - } - - public function add(string $sort, string|null $order = null): void - { - $order = ! $order ? 'ASC' : $order; - $this->parts[] = $sort . ' ' . $order; - } - - /** @psalm-return 0|positive-int */ - public function count(): int - { - return count($this->parts); - } - - /** @psalm-return list */ - public function getParts(): array - { - return $this->parts; - } - - public function __toString(): string - { - return $this->preSeparator . implode($this->separator, $this->parts) . $this->postSeparator; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Orx.php b/vendor/doctrine/orm/src/Query/Expr/Orx.php deleted file mode 100644 index 2ae2332..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Orx.php +++ /dev/null @@ -1,32 +0,0 @@ - */ - protected array $parts = []; - - /** @psalm-return list */ - public function getParts(): array - { - return $this->parts; - } -} diff --git a/vendor/doctrine/orm/src/Query/Expr/Select.php b/vendor/doctrine/orm/src/Query/Expr/Select.php deleted file mode 100644 index 91b0b60..0000000 --- a/vendor/doctrine/orm/src/Query/Expr/Select.php +++ /dev/null @@ -1,28 +0,0 @@ - */ - protected array $parts = []; - - /** @psalm-return list */ - public function getParts(): array - { - return $this->parts; - } -} -- cgit v1.2.3