From ec8d4c4e7e7ac4a474f1849b939875c89064d3ad Mon Sep 17 00:00:00 2001 From: chris Date: Mon, 2 Mar 2026 13:49:02 +0100 Subject: [PATCH] [BUGFIX] IsLocalImageExistingViewHelper: Replace `evaluateCondition()` with `verdict()` Breaking: Method `TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper->evaluateCondition()` and handling has been removed in Fluid v4.0. https://docs.typo3.org/other/typo3fluid/fluid/main/en-us/Changelog/4.x.html --- Classes/ViewHelpers/IsLocalImageExistingViewHelper.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Classes/ViewHelpers/IsLocalImageExistingViewHelper.php b/Classes/ViewHelpers/IsLocalImageExistingViewHelper.php index 2743c65..5098897 100644 --- a/Classes/ViewHelpers/IsLocalImageExistingViewHelper.php +++ b/Classes/ViewHelpers/IsLocalImageExistingViewHelper.php @@ -3,6 +3,7 @@ namespace In2code\Instagram\ViewHelpers; use TYPO3\CMS\Core\Utility\GeneralUtility; +use TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface; use TYPO3Fluid\Fluid\Core\ViewHelper\AbstractConditionViewHelper; /** @@ -26,11 +27,11 @@ public function initializeArguments() } /** - * @param null $arguments + * @param array $arguments + * @param RenderingContextInterface $renderingContext * @return bool - * @throws \Exception */ - protected static function evaluateCondition(?array $arguments = null): bool + public static function verdict(array $arguments, RenderingContextInterface $renderingContext): bool { $file = GeneralUtility::getFileAbsFileName(self::$imageFolder) . $arguments['id'] . '.jpg'; return is_file($file);