We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cfece50 commit c63b80dCopy full SHA for c63b80d
src/DependencyInjection/Configuration.php
@@ -80,13 +80,13 @@ public function getConfigTreeBuilder(): TreeBuilder
80
->prototype('scalar')
81
->validate()
82
->ifTrue(function ($value): bool {
83
- if (! is_string($value)) {
+ if (! is_string($value) && '' != $value) {
84
return true;
85
}
86
87
- return '@' !== substr($value, 0, 1);
+ return '@' !== $value[0];
88
})
89
- ->thenInvalid('Expecting service reference, got %s');
+ ->thenInvalid('Expecting service reference, got "%s"');
90
$optionsChildNodes->scalarNode('logger');
91
$optionsChildNodes->integerNode('max_breadcrumbs')
92
->min(1);
0 commit comments