Commit 78fc297
[BUGFIX] Use ExpressionBuilder::and when available, andX as fallback
TYPO3v12 brings a deprecation warning when copying a container with
nested content elements:
> TYPO3 Deprecation Notice:
> ExpressionBuilder::andX() will be removed in TYPO3 v13.0.
> Use ExpressionBuilder::and() instead. in
> vendor/typo3/cms-core/Classes/Database/Query/Expression/ExpressionBuilder.php
> line 72
The `and` method was introduced in TYPO3v11, and in v12 it was deprecated.
This patch switches the order: When `and` is available, it is used,
and the code falls back to `andX` for TYPO3v10.
Changelog:
https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.0/Deprecation-97354-ExpressionBuilderMethodsAndXAndOrX.html
Resolves: #22331 parent 3b102cd commit 78fc297
File tree
1 file changed
+1
-1
lines changed- Classes/Integration/HookSubscribers
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
0 commit comments