minor #31589 [FrameworkBundle] improve cs (nicolas-grekas)

This PR was merged into the 4.2 branch.

Discussion
----------

[FrameworkBundle] improve cs

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | no
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | -
| License       | MIT
| Doc PR        | -

I've had a hard time getting this line, this should make it easier to understand.

Commits
-------

93c2412652 [FrameworkBundle] improve cs
This commit is contained in:
Nicolas Grekas 2019-05-23 08:59:56 +02:00
commit 19741a4950

View File

@ -1671,7 +1671,7 @@ class FrameworkExtension extends Extension
}
if ($pool['tags']) {
if ($config['pools'][$pool['tags']]['tags'] ?? false) {
if (true !== $pool['tags'] && ($config['pools'][$pool['tags']]['tags'] ?? false)) {
$pool['tags'] = '.'.$pool['tags'].'.inner';
}
$container->register($name, TagAwareAdapter::class)