Skip to content

Commit c0b6eab

Browse files
committed
Fixed unclosed prototypes in config
1 parent f4f0bda commit c0b6eab

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/batch-symfony-framework/src/DependencyInjection/Configuration.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ private function launcher(): ArrayNodeDefinition
132132
->arrayNode('launchers')
133133
->defaultValue(['simple' => 'simple://simple'])
134134
->useAttributeAsKey('name')
135-
->scalarPrototype()
135+
->scalarPrototype()->end()
136136
->validate()
137137
->ifTrue($isInvalidDsn)->thenInvalid('Invalid job launcher DSN.')
138138
->end()
@@ -142,7 +142,7 @@ private function launcher(): ArrayNodeDefinition
142142
->arrayNode('routing')
143143
->normalizeKeys(false)
144144
->useAttributeAsKey('name')
145-
->scalarPrototype()
145+
->scalarPrototype()->end()
146146
->end()
147147
->end()
148148
->end()
@@ -176,12 +176,11 @@ private function parameters(): ArrayNodeDefinition
176176
->children()
177177
->arrayNode('global')
178178
->useAttributeAsKey('name')
179-
->variablePrototype()
180-
->end()
179+
->variablePrototype()->end()
181180
->end()
182181
->arrayNode('per_job')
183182
->useAttributeAsKey('name')
184-
->variablePrototype()
183+
->variablePrototype()->end()
185184
->validate()
186185
->ifTrue(fn(mixed $value) => !$isStringAssociativeArray($value))
187186
->thenInvalid('Should be an array<string, mixed>.')

0 commit comments

Comments
 (0)