-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Related: doctrine/orm#11240 Related: doctrine/orm#11241
- Loading branch information
1 parent
87d961b
commit ce17b0e
Showing
4 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- src/Query/Expr/Base.php 2024-02-09 14:21:17 | ||
+++ src/Query/Expr/Base.php 2024-02-09 14:21:24 | ||
@@ -33,6 +33,10 @@ | ||
|
||
public function __construct(mixed $args = []) | ||
{ | ||
+ if (is_array($args) && array_key_exists(0, $args) && is_array($args[0])) { | ||
+ $args = $args[0]; | ||
+ } | ||
+ | ||
$this->addMultiple($args); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- src/Query/AST/Functions/DateAddFunction.php 2024-02-09 14:22:59 | ||
+++ src/Query/AST/Functions/DateAddFunction.php 2024-02-09 14:23:02 | ||
@@ -71,7 +71,6 @@ | ||
private function dispatchIntervalExpression(SqlWalker $sqlWalker): string | ||
{ | ||
$sql = $this->intervalExpression->dispatch($sqlWalker); | ||
- assert(is_numeric($sql)); | ||
|
||
return $sql; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- src/Query/AST/Functions/DateSubFunction.php 2024-02-09 14:22:31 | ||
+++ src/Query/AST/Functions/DateSubFunction.php 2024-02-09 14:22:50 | ||
@@ -64,7 +64,6 @@ | ||
private function dispatchIntervalExpression(SqlWalker $sqlWalker): string | ||
{ | ||
$sql = $this->intervalExpression->dispatch($sqlWalker); | ||
- assert(is_numeric($sql)); | ||
|
||
return $sql; | ||
} |