From 2750ff8b80cb7dc9febb68eb3b914584bcb77c43 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lu=C3=ADs=20Cobucci?= Date: Tue, 19 Nov 2024 22:11:05 +0100 Subject: [PATCH] Accept issues due too lax type usage in Symfony MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Luís Cobucci --- src/Compiler.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Compiler.php b/src/Compiler.php index 81e0f7e7..fa97f684 100644 --- a/src/Compiler.php +++ b/src/Compiler.php @@ -12,6 +12,7 @@ use Symfony\Component\DependencyInjection\Dumper\PhpDumper; use Symfony\Component\Filesystem\Filesystem; +use function array_is_list; use function array_pop; use function assert; use function dirname; @@ -86,8 +87,9 @@ private function getContainerContent( $options['inline_class_loader'] = $options['inline_factories']; $content = (new PhpDumper($container))->dump($options); - assert(is_array($content)); + assert(is_array($content) && ! array_is_list($content)); + // @phpstan-ignore return.type return $content; }