Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5ba84ca

Browse files
committed
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 ------- 34330e5 [DependencyInjection] Add some missing typehints in YamlFileLoader
2 parents 6148457 + 34330e5 commit 5ba84ca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function supports($resource, $type = null)
8585
* @param array $content
8686
* @param string $file
8787
*/
88-
private function parseImports($content, $file)
88+
private function parseImports(array $content, $file)
8989
{
9090
if (!isset($content['imports'])) {
9191
return;
@@ -112,7 +112,7 @@ private function parseImports($content, $file)
112112
* @param array $content
113113
* @param string $file
114114
*/
115-
private function parseDefinitions($content, $file)
115+
private function parseDefinitions(array $content, $file)
116116
{
117117
if (!isset($content['services'])) {
118118
return;
@@ -420,7 +420,7 @@ private function resolveServices($value)
420420
*
421421
* @param array $content
422422
*/
423-
private function loadFromExtensions($content)
423+
private function loadFromExtensions(array $content)
424424
{
425425
foreach ($content as $namespace => $values) {
426426
if (in_array($namespace, array('imports', 'parameters', 'services'))) {

0 commit comments

Comments
 (0)