[TASK] Inform user if TS condition does not make sense 36/56836/3
authorMarkus Klein <markus.klein@typo3.org>
Wed, 2 May 2018 22:23:05 +0000 (00:23 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Thu, 3 May 2018 07:41:08 +0000 (09:41 +0200)
commit33567878c2e392562962e4a96f2bf8d703dda632
tree2c23f091fb0c398973566ded822e13ef1ca7269d
parentb85a1a521fa5ee09de6a417f5ed713f96874e67f
[TASK] Inform user if TS condition does not make sense

Empty conditions `[]` always evaluate to false. Warn the user
if such a condition is present.

Resolves: #84911
Releases: master, 8.7
Change-Id: I499e64aad30e29fe3698c40fed57e1f1c87ce885
Reviewed-on: https://review.typo3.org/56836
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php
typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php