Skip to content

Commit

Permalink
Merge pull request #612 from Wirone/codito/phpstan-enhancements
Browse files Browse the repository at this point in the history
PHPStan enhancements
  • Loading branch information
stof committed Dec 4, 2023
2 parents 098f885 + 96fbb07 commit f560293
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@
*.phar
/composer.lock
/vendor
/phpstan.neon
/phpunit.xml
/.phpunit.result.cache
10 changes: 10 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,16 @@
}
},

"scripts": {
"phpstan": "phpstan analyse",
"phpstan:baseline": "phpstan analyse --generate-baseline"
},

"scripts-descriptions": {
"phpstan": "Run PHPStan analysis",
"phpstan:baseline": "Dump PHPStan baseline file - use only for updating, do not add new errors when possible"
},

"extra": {
"branch-alias": {
"dev-master": "1.x-dev"
Expand Down
10 changes: 10 additions & 0 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,16 @@ parameters:
count: 1
path: src/Prophecy/Doubler/Doubler.php

-
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(ReflectionIntersectionType\\|ReflectionNamedType\\|string\\)\\: mixed\\)\\|null, Closure\\(string\\)\\: string given\\.$#"
count: 1
path: src/Prophecy/Doubler/Generator/ClassMirror.php

-
message: "#^Parameter \\#1 \\$callback of function array_map expects \\(callable\\(ReflectionIntersectionType\\|ReflectionNamedType\\)\\: mixed\\)\\|null, Closure\\(ReflectionNamedType\\)\\: string given\\.$#"
count: 1
path: src/Prophecy/Prophecy/MethodProphecy.php

-
message: "#^Unable to resolve the template type T in call to method Prophecy\\\\Prophet\\:\\:prophesize\\(\\)$#"
count: 1
Expand Down
File renamed without changes.

0 comments on commit f560293

Please sign in to comment.