[TASK] Inform user if TS condition does not make sense 35/56835/4
authorMarkus Klein <markus.klein@typo3.org>
Wed, 2 May 2018 22:23:05 +0000 (00:23 +0200)
committerGeorg Ringer <georg.ringer@gmail.com>
Thu, 3 May 2018 06:27:15 +0000 (08:27 +0200)
commit90942bba2ea3858021388a2d1c6efe99da9616a1
treeb40ecb9076d3e915db1ddae1bb9fc8dc7b539fd9
parent9b548afac465f2319ee49cd6baf20be7926a5ae4
[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/56835
Reviewed-by: Robert Wildling <robertwildling@gmail.com>
Tested-by: Robert Wildling <robertwildling@gmail.com>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Riny van Tiggelen <info@online-gamer.nl>
Reviewed-by: Georg Ringer <georg.ringer@gmail.com>
Tested-by: Georg Ringer <georg.ringer@gmail.com>
typo3/sysext/core/Classes/TypoScript/Parser/TypoScriptParser.php
typo3/sysext/core/Tests/Unit/TypoScript/Parser/TypoScriptParserTest.php