Skip to content

Commit dde6c54

Browse files
committed
bug #873 [AiBundle] Fix fatal error when a value is not defined (lyrixx)
This PR was merged into the main branch. Discussion ---------- [AiBundle] Fix fatal error when a value is not defined | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | Docs? | no | Issues | | License | MIT ### Before <img width="1285" height="805" alt="image" src="https://github.com/user-attachments/assets/57000bd8-1dd1-4939-9f8a-f390dc9b64ac" /> ### After <img width="1285" height="805" alt="image" src="https://github.com/user-attachments/assets/1a8a97fb-3dd6-4259-b60b-362ea8e5d5bf" /> Commits ------- f14eaeb [AiBundle] Fix fatal error when a value is not defined
2 parents 1e69969 + f14eaeb commit dde6c54

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
@@ -882,7 +882,7 @@
882882
->end()
883883
->beforeNormalization()
884884
->always(function ($v) {
885-
if (\is_string($v)) {
885+
if (\is_string($v) || null === $v) {
886886
return $v;
887887
}
888888

0 commit comments

Comments
 (0)