minor #26487 [DI] Remove dead dumper check (ro0NL)

This PR was merged into the 4.0 branch.

Discussion
----------

[DI] Remove dead dumper check

| Q             | A
| ------------- | ---
| Branch?       | 4.0
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes    <!-- please add some, will be required by reviewers -->
| Fixed tickets | #...   <!-- #-prefixed issue number(s), if any -->
| License       | MIT
| Doc PR        | symfony/symfony-docs#... <!-- required for new features -->

A container is always compiled when dumped.

Commits
-------

6a5f071bff [DI] Remove dead dumper check
This commit is contained in:
Fabien Potencier 2018-03-11 13:23:24 -05:00
commit 59f3081175

View File

@ -1604,7 +1604,7 @@ EOF;
private function dumpParameter(string $name): string
{
if ($this->container->isCompiled() && $this->container->hasParameter($name)) {
if ($this->container->hasParameter($name)) {
$value = $this->container->getParameter($name);
$dumpedValue = $this->dumpValue($value, false);