Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #22564 Fixing problem where _defaults set to null was seen as a s…
…ervice (weaverryan) This PR was squashed before being merged into the 3.3-dev branch (closes #22564). Discussion ---------- Fixing problem where _defaults set to null was seen as a service | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a ```yml services: _defaults: ``` If you leave `_defaults` empty (i.e. null), you got a bad error before. Now it's better :) Before: >The definition for "_defaults" has no class. If you intend to inject this service dynamicall y at runtime, please mark it as synthetic=true. If this is an abstract definition solely use d by child definitions, please add abstract=true, otherwise specify a class to get rid of th is error. After: > Service "_defaults" key must be an array, "NULL" given in "/path/to/services.yml" Commits ------- 4b7e148 Fixing problem where _defaults set to null was seen as a service
- Loading branch information
Showing
4 changed files
with
28 additions
and
2 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
2 changes: 2 additions & 0 deletions
2
src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/bad_empty_defaults.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,2 @@ | ||
services: | ||
_defaults: |
2 changes: 2 additions & 0 deletions
2
src/Symfony/Component/DependencyInjection/Tests/Fixtures/yaml/bad_empty_instanceof.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,2 @@ | ||
services: | ||
_instanceof: |
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