Merge branch '5.2' into 5.x

* 5.2:
  fix PHP 8 compatibility
This commit is contained in:
Christian Flothmann 2021-01-08 08:59:41 +01:00
commit 9f5d17839a

View File

@ -916,7 +916,7 @@ class CheckTypeDeclarationsPassTest extends TestCase
->setArguments([true]); ->setArguments([true]);
$this->expectException(\Symfony\Component\DependencyInjection\Exception\InvalidArgumentException::class); $this->expectException(\Symfony\Component\DependencyInjection\Exception\InvalidArgumentException::class);
$this->expectExceptionMessage('Invalid definition for service "union": argument 1 of "Symfony\Component\DependencyInjection\Tests\Fixtures\CheckTypeDeclarationsPass\UnionConstructor::create()" accepts "array|false", "boolean" passed.'); $this->expectExceptionMessage('Invalid definition for service "union": argument 1 of "Symfony\Component\DependencyInjection\Tests\Fixtures\CheckTypeDeclarationsPass\UnionConstructor::create()" accepts "array|false", "bool" passed.');
(new CheckTypeDeclarationsPass(true))->process($container); (new CheckTypeDeclarationsPass(true))->process($container);
} }