You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now there is a workaround for expression usage in the isEmpty transformation which prevents hard errors for expressions accessing possibly undefined variables/record keys:
So in the short term the docs can suggest using this operator in expression.
Once symfony/expression-language >= 7.2 is guaranteed, the try...catch could be dropped accordingly. Notice that no TYPO3 version guarantees that this version is installed. TYPO3v13 currently requires ^7.1.4 and TYPO3v12 requires ^6.4 || ^7.0.
The text was updated successfully, but these errors were encountered:
Thanks for pointing this out. I had added my voice to some bug report in the symfony/expression-language project, but it seems like the resolution was not mentioned there.
This is really interesting. Have you tried explicitly requesting version 7.2 in your TYPO3 installation? If yes, does it work fine?
Besides mentioning the null coalescing operator in the documentation, I am thinking that the next major version of External Import could require version 7.2, if that does not break something in TYPO3 12 or 13.
Right now there is a workaround for
expression
usage in theisEmpty
transformation which prevents hard errors for expressions accessing possibly undefined variables/record keys:external_import/Classes/Step/TransformDataStep.php
Lines 328 to 351 in 9be4917
Since Symfony 6.x there is a null-coalescing operator available in the Expression syntax. Since Symfony 7.2 this not fail on undefined variables anymore.
So in the short term the docs can suggest using this operator in
expression
.Once
symfony/expression-language
>= 7.2 is guaranteed, the try...catch could be dropped accordingly. Notice that no TYPO3 version guarantees that this version is installed. TYPO3v13 currently requires^7.1.4
and TYPO3v12 requires^6.4 || ^7.0
.The text was updated successfully, but these errors were encountered: