FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
189 stars 228 forks source link

ContainsViewHelper causes deprecation Message in Typo3 7.4 when needle or haystack is numeric #1699

Closed christophrunkel closed 3 years ago

christophrunkel commented 3 years ago

Adding strval fixes the problem

protected static function evaluateCondition($arguments = null) {

    return false !== strpos(strval($arguments['haystack']), strval($arguments['needle']));
}
NamelessCoder commented 3 years ago

Resolved by https://github.com/FluidTYPO3/vhs/commit/9eb59c6ab04adb38d53b87e7b4b169048e3c17d2