Merge branch '5.1' into 5.2

* 5.1:
  fix PHP 8 compatibility
This commit is contained in:
Christian Flothmann 2021-01-08 08:59:15 +01:00
commit e7e7907e6c

View File

@ -916,7 +916,7 @@ class CheckTypeDeclarationsPassTest extends TestCase
->setArguments([true]);
$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);
}