forked from symfony/symfony
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix issue symfony#3251: Check attribute type of service tags
The attributes of service tags have to be of a scalar type. It was possible to add arrays here with yaml-configuration.
- Loading branch information
1 parent
3bd2e01
commit 3ae826a
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
tests/Symfony/Tests/Component/DependencyInjection/Fixtures/yaml/badtag3.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
services: | ||
foo_service: | ||
class: FooClass | ||
tags: | ||
# tag-attribute is not a scalar | ||
- { name: foo, foo: { foo: foo, bar: bar } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters