Skip to content

Commit 4a97419

Browse files
committed
bug symfony#61798 [DependencyInjection] Improve services.schema.json (GromNaN)
This PR was merged into the 7.4 branch. Discussion ---------- [DependencyInjection] Improve services.schema.json | Q | A | ------------- | --- | Branch? | 7.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | - | License | MIT An empty string cannot be used as parameter name. Commits ------- 2f222c8 [DependencyInjection] Improve services.schema.json
2 parents 91f8966 + 2f222c8 commit 4a97419

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/DependencyInjection/Loader/schema/services.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"description": "Defines application-wide parameters.",
3131
"$comment": "Values support scalars, arrays and objects.",
3232
"patternProperties": {
33-
"^.*$": { "$ref": "#/$defs/parameterValue" }
33+
"^.+$": { "$ref": "#/$defs/parameterValue" }
3434
},
3535
"additionalProperties": false
3636
},
@@ -203,7 +203,7 @@
203203
]
204204
},
205205
"serviceShortSyntax": {
206-
"$comment": "Short syntax: service defined as arguments array. YAML example: my.service: ['@dependency', 'literal', 123]",
206+
"$comment": "Short syntax: service defined as arguments array. YAML example: App\\SomeService: ['@dependency', 'literal', 123]",
207207
"type": "array",
208208
"items": { "$ref": "#/$defs/parameterValue" }
209209
},

0 commit comments

Comments
 (0)