Skip to content

Commit 5be7070

Browse files
committed
Fix validation on system prompt translation validation of bundle options
1 parent 4e0b0d4 commit 5be7070

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ai-bundle/config/options.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
->end()
188188
->validate()
189189
->ifTrue(function ($v) {
190-
return \is_array($v) && $v['enabled'] && !interface_exists(TranslatorInterface::class);
190+
return \is_array($v) && ($v['enabled'] ?? false) && !interface_exists(TranslatorInterface::class);
191191
})
192192
->thenInvalid('System prompt translation is enabled, but no translator is present. Try running `composer require symfony/translation`.')
193193
->end()

0 commit comments

Comments
 (0)