minor #32288 fix invalid call to PhpFileLoader::load() in a test (Tobion)

This PR was merged into the 4.3 branch.

Discussion
----------

fix invalid call to PhpFileLoader::load() in a test

| Q             | A
| ------------- | ---
| Branch?       | 4.3
| Bug fix?      | yno
| New feature?  | yno <!-- please update src/**/CHANGELOG.md files -->
| BC breaks?    | no     <!-- see https://symfony.com/bc -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets |
| License       | MIT
| Doc PR        |

This was calling `\Symfony\Component\DependencyInjection\Loader\PhpFileLoader::load($resource, string $type = null)` with the container object as $type which I found in #32286

Commits
-------

8930335934 fix invalid call to PhpFileLoader::load() in a test
This commit is contained in:
Tobias Schultze 2019-07-02 16:37:00 +02:00
commit 205cd7a0fb

View File

@ -1,6 +1,6 @@
<?php
$this->load('container1.php', $container);
$this->load('container1.php');
$container->loadFromExtension('security', [
'encoders' => [