Skip to content

Commit

Permalink
Merge branch 'phpspec:master' into php-8.3-compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshreeputra authored Dec 7, 2023
2 parents 227b6ba + f560293 commit c7e536d
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
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
12 changes: 11 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "phpspec/prophecy",
"description": "Highly opinionated mocking framework for PHP 5.3+",
"keywords": ["Mock", "Stub", "Dummy", "Double", "Fake", "Spy"],
"keywords": ["Mock", "Stub", "Dummy", "Double", "Fake", "Spy", "dev"],
"homepage": "https://github.com/phpspec/prophecy",
"type": "library",
"license": "MIT",
Expand Down 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 c7e536d

Please sign in to comment.