Skip to content

Commit

Permalink
Accept issues due too lax type usage in Symfony
Browse files Browse the repository at this point in the history
Signed-off-by: Luís Cobucci <[email protected]>
  • Loading branch information
lcobucci committed Nov 19, 2024
1 parent 0a240df commit 2750ff8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Compiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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));

Check warning on line 90 in src/Compiler.php

View workflow job for this annotation

GitHub Actions / Mutation tests (locked, 8.2, ubuntu-latest)

Escaped Mutant for Mutator "LogicalAnd": @@ @@ $options['inline_factories'] = $options['debug'] === false; $options['inline_class_loader'] = $options['inline_factories']; $content = (new PhpDumper($container))->dump($options); - assert(is_array($content) && !array_is_list($content)); + assert(is_array($content) || !array_is_list($content)); // @phpstan-ignore return.type return $content; }

Check warning on line 90 in src/Compiler.php

View workflow job for this annotation

GitHub Actions / Mutation tests (locked, 8.2, ubuntu-latest)

Escaped Mutant for Mutator "LogicalAnd": @@ @@ $options['inline_factories'] = $options['debug'] === false; $options['inline_class_loader'] = $options['inline_factories']; $content = (new PhpDumper($container))->dump($options); - assert(is_array($content) && !array_is_list($content)); + assert(is_array($content) || !array_is_list($content)); // @phpstan-ignore return.type return $content; }

// @phpstan-ignore return.type
return $content;
}

Expand Down

0 comments on commit 2750ff8

Please sign in to comment.