From 5be7070604f132db8303daeaeb1bffddc5dabc94 Mon Sep 17 00:00:00 2001 From: Christopher Hertel Date: Tue, 16 Sep 2025 23:33:39 +0200 Subject: [PATCH] Fix validation on system prompt translation validation of bundle options --- src/ai-bundle/config/options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ai-bundle/config/options.php b/src/ai-bundle/config/options.php index 25a7a9184..1d04be496 100644 --- a/src/ai-bundle/config/options.php +++ b/src/ai-bundle/config/options.php @@ -187,7 +187,7 @@ ->end() ->validate() ->ifTrue(function ($v) { - return \is_array($v) && $v['enabled'] && !interface_exists(TranslatorInterface::class); + return \is_array($v) && ($v['enabled'] ?? false) && !interface_exists(TranslatorInterface::class); }) ->thenInvalid('System prompt translation is enabled, but no translator is present. Try running `composer require symfony/translation`.') ->end()