Skip to content

Commit

Permalink
Merge pull request #540 from lcobucci/renovate/major-phpstan-packages
Browse files Browse the repository at this point in the history
Update PHPStan packages to v2 (major)
  • Loading branch information
lcobucci authored Nov 19, 2024
2 parents b4740c4 + 2750ff8 commit b08af60
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@
"lcobucci/coding-standard": "^11.1",
"mikey179/vfsstream": "^1.6.12",
"phpstan/extension-installer": "^1.4",
"phpstan/phpstan": "^1.12",
"phpstan/phpstan-deprecation-rules": "^1.2",
"phpstan/phpstan-phpunit": "^1.4",
"phpstan/phpstan-strict-rules": "^1.6",
"phpstan/phpstan": "^2.0",
"phpstan/phpstan-deprecation-rules": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"phpstan/phpstan-strict-rules": "^2.0",
"phpunit/phpunit": "^11.4",
"squizlabs/php_codesniffer": "^3.10",
"symfony/yaml": "^7.1"
Expand Down
78 changes: 38 additions & 40 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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; }

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

Expand Down

0 comments on commit b08af60

Please sign in to comment.