Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
Closed
Labels
Description
Description
isRequired() is not compatible with a default value, as the default value is ignored. And exception should be thrown when a config tree node has both.
This can be deprecated in 7.4 and fail in 8.0.
Example
The following config tree should fail before processing a configuration.
$definition->rootNode()->children() ->scalarNode('api_key') ->defaultValue('%env(OPENAI_API_KEY)%') ->info('OpenAI API Key used to authenticate with the OpenAI API');Found withopenai-php/symfony#36, fixed byopenai-php/symfony@2e6d30a