[BUGFIX] TypoScript userFunc condition does not work with static methods
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Configuration / ConditionMatcherUserFuncs.php
index 7933355..41c076b 100644 (file)
@@ -48,5 +48,17 @@ namespace {
        function user_testQuotes($value) {
                return $value === '1 " 2';
        }
+
+       class ConditionMatcherUserFunctions {
+
+               /**
+                * @param mixed $value
+                * @return bool
+                */
+               static public function isTrue($value) {
+                       return (bool)$value;
+               }
+
+       }
 }