Deprecation: #100237 - TypoScript-related exceptions¶
Two exception classes related to the TypoScript condition matching logic have been marked as deprecated in TYPO3 v12 and will be removed in v13:
Both exceptions should have been marked
@internal within the core, but
\TYPO3\CMS\Core\Exception\MissingTsfeException was an internal
communication class and was caught internally, the use case was solved in a more
simple way avoiding the exception.
was related to conditions which triggered a warning within the symfony expression language. Those were
turned into this exception in TYPO3 v11. In TYPO3 v12, the original exception will bubble up, forcing
developers to fix the broken Symfony condition syntax.
Third-party extensions most likely neither throw nor catch these exceptions, the extension scanner will find possible usages.
No direct migration available.
getTSFE() function, developers have to ensure
that "TSFE" is available before accessing its properties. A missing "TSFE",
e.g. in backend context, does no longer automatically evaluate the whole
FALSE. Instead, the function returns
which can be checked using either
[getTSFE() && getTSFE().id == 42]
or the null-safe operator
[getTSFE()?.id == 42].