Skip to content

Commit

Permalink
Merge pull request #22 from patchlevel/update-phpstan-to-v2
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielBadura authored Jan 1, 2025
2 parents 3719575 + 7a60e88 commit 9420c76
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 14 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"infection/infection": "^0.27.0",
"patchlevel/coding-standard": "^1.3.0",
"phpspec/prophecy-phpunit": "^2.1.0",
"phpstan/phpstan": "^1.10.48",
"phpstan/phpstan": "^2.1.0",
"phpunit/phpunit": "^10.5.2",
"psalm/plugin-symfony": "^5.2",
"roave/security-advisories": "dev-master",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

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

36 changes: 30 additions & 6 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
@@ -1,32 +1,56 @@
parameters:
ignoreErrors:
-
message: "#^Method Patchlevel\\\\EventSourcingAdminBundle\\\\Decorator\\\\RequestIdDecorator\\:\\:__invoke\\(\\) has parameter \\$message with generic class Patchlevel\\\\EventSourcing\\\\Message\\\\Message but does not specify its types\\: T$#"
message: '#^Method Patchlevel\\EventSourcingAdminBundle\\Decorator\\RequestIdDecorator\:\:__invoke\(\) has parameter \$message with generic class Patchlevel\\EventSourcing\\Message\\Message but does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Decorator/RequestIdDecorator.php

-
message: "#^Method Patchlevel\\\\EventSourcingAdminBundle\\\\Decorator\\\\RequestIdDecorator\\:\\:__invoke\\(\\) return type with generic class Patchlevel\\\\EventSourcing\\\\Message\\\\Message does not specify its types\\: T$#"
message: '#^Method Patchlevel\\EventSourcingAdminBundle\\Decorator\\RequestIdDecorator\:\:__invoke\(\) return type with generic class Patchlevel\\EventSourcing\\Message\\Message does not specify its types\: T$#'
identifier: missingType.generics
count: 1
path: src/Decorator/RequestIdDecorator.php

-
message: "#^Call to an undefined method Symfony\\\\Component\\\\Config\\\\Definition\\\\Builder\\\\NodeDefinition\\:\\:children\\(\\)\\.$#"
message: '#^Call to an undefined method Symfony\\Component\\Config\\Definition\\Builder\\NodeDefinition\:\:children\(\)\.$#'
identifier: method.notFound
count: 1
path: src/DependencyInjection/Configuration.php

-
message: "#^Only iterables can be unpacked, mixed given\\.$#"
message: '#^Cannot call method defaultFalse\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/DependencyInjection/Configuration.php

-
message: '#^Cannot call method end\(\) on mixed\.$#'
identifier: method.nonObject
count: 2
path: src/DependencyInjection/Configuration.php

-
message: '#^Cannot call method scalarNode\(\) on mixed\.$#'
identifier: method.nonObject
count: 1
path: src/DependencyInjection/Configuration.php

-
message: '#^Only iterables can be unpacked, mixed given\.$#'
identifier: arrayUnpacking.nonIterable
count: 1
path: src/DependencyInjection/CustomMessageHeaderCompilerPass.php

-
message: "#^Method Patchlevel\\\\EventSourcingAdminBundle\\\\Twig\\\\DumpExtension\\:\\:dump\\(\\) should return string but returns string\\|null\\.$#"
message: '#^Method Patchlevel\\EventSourcingAdminBundle\\Twig\\DumpExtension\:\:dump\(\) should return string but returns string\|null\.$#'
identifier: return.type
count: 1
path: src/Twig/DumpExtension.php

-
message: "#^Cannot cast mixed to string\\.$#"
message: '#^Cannot cast mixed to string\.$#'
identifier: cast.string
count: 1
path: src/Twig/InspectionExtension.php

1 change: 1 addition & 0 deletions src/TokenMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ private function load(): array
}

while ($row = fgetcsv($file)) {
/** @var array{0: string, 1: string} $row */
$map[$row[0]] = $row[1];
}

Expand Down

0 comments on commit 9420c76

Please sign in to comment.