minor #21346 [DependencyInjection] Add some missing typehints in YamlFileLoader (dunglas)
This PR was merged into the 2.7 branch.
Discussion
----------
[DependencyInjection] Add some missing typehints in YamlFileLoader
| Q | A
| ------------- | ---
| Branch? | 2.7
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | n/a
| License | MIT
| Doc PR | n/a
Commits
-------
34330e5136
[DependencyInjection] Add some missing typehints in YamlFileLoader
This commit is contained in:
commit
5ba84cab08
|
@ -85,7 +85,7 @@ class YamlFileLoader extends FileLoader
|
||||||
* @param array $content
|
* @param array $content
|
||||||
* @param string $file
|
* @param string $file
|
||||||
*/
|
*/
|
||||||
private function parseImports($content, $file)
|
private function parseImports(array $content, $file)
|
||||||
{
|
{
|
||||||
if (!isset($content['imports'])) {
|
if (!isset($content['imports'])) {
|
||||||
return;
|
return;
|
||||||
|
@ -112,7 +112,7 @@ class YamlFileLoader extends FileLoader
|
||||||
* @param array $content
|
* @param array $content
|
||||||
* @param string $file
|
* @param string $file
|
||||||
*/
|
*/
|
||||||
private function parseDefinitions($content, $file)
|
private function parseDefinitions(array $content, $file)
|
||||||
{
|
{
|
||||||
if (!isset($content['services'])) {
|
if (!isset($content['services'])) {
|
||||||
return;
|
return;
|
||||||
|
@ -420,7 +420,7 @@ class YamlFileLoader extends FileLoader
|
||||||
*
|
*
|
||||||
* @param array $content
|
* @param array $content
|
||||||
*/
|
*/
|
||||||
private function loadFromExtensions($content)
|
private function loadFromExtensions(array $content)
|
||||||
{
|
{
|
||||||
foreach ($content as $namespace => $values) {
|
foreach ($content as $namespace => $values) {
|
||||||
if (in_array($namespace, array('imports', 'parameters', 'services'))) {
|
if (in_array($namespace, array('imports', 'parameters', 'services'))) {
|
||||||
|
|
Reference in New Issue