Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ba84ca

Browse filesBrowse 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
Copy full SHA for 5ba84ca

File tree

Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-3
lines changed

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/DependencyInjection/Loader/YamlFileLoader.php
+3-3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.