Skip to content

Commit 302b717

Browse files
committed
minor symfony#15288 [DependencyInjection] Remove unused code in XmlFileLoader (dunglas)
This PR was merged into the 2.3 branch. Discussion ---------- [DependencyInjection] Remove unused code in XmlFileLoader | Q | A | ------------- | --- | 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 ------- 7fa79da [DependencyInjection] Remove unused code in XmlFileLoader
2 parents 9962f36 + 7fa79da commit 302b717

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function load($resource, $type = null)
4848
$this->parseImports($xml, $path);
4949

5050
// parameters
51-
$this->parseParameters($xml, $path);
51+
$this->parseParameters($xml);
5252

5353
// extensions
5454
$this->loadFromExtensions($xml);
@@ -69,9 +69,8 @@ public function supports($resource, $type = null)
6969
* Parses parameters.
7070
*
7171
* @param SimpleXMLElement $xml
72-
* @param string $file
7372
*/
74-
private function parseParameters(SimpleXMLElement $xml, $file)
73+
private function parseParameters(SimpleXMLElement $xml)
7574
{
7675
if (!$xml->parameters) {
7776
return;

0 commit comments

Comments
 (0)