-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhancement: Use baseline feature to run phpstan with and without ext…
…ension
- Loading branch information
1 parent
2228e35
commit 2e1ea00
Showing
9 changed files
with
188 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
.docker/ export-ignore | ||
.github/ export-ignore | ||
test/ export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.php_cs export-ignore | ||
composer.lock export-ignore | ||
Makefile export-ignore | ||
phpstan.neon export-ignore | ||
phpunit.xml export-ignore | ||
.docker/ export-ignore | ||
.github/ export-ignore | ||
test/ export-ignore | ||
.editorconfig export-ignore | ||
.gitattributes export-ignore | ||
.gitignore export-ignore | ||
.php_cs export-ignore | ||
composer.lock export-ignore | ||
Makefile export-ignore | ||
phpstan-with-extension-baseline.neon export-ignore | ||
phpstan-with-extension.neon export-ignore | ||
phpstan-without-extension-baseline.neon export-ignore | ||
phpstan-without-extension.neon export-ignore | ||
phpunit.xml export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Property JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\ProphesizeTest\\:\\:\\$prophecy has no typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/ProphesizeTest.php | ||
|
||
- | ||
message: "#^Method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\ProphesizeTest\\:\\:createProphecy\\(\\) has no return typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/ProphesizeTest.php | ||
|
||
- | ||
message: "#^Property JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\WillExtendTest\\:\\:\\$prophecy has no typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php | ||
|
||
- | ||
message: "#^Method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\WillExtendTest\\:\\:createProphecy\\(\\) has no return typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php | ||
|
||
- | ||
message: "#^Property JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\WillImplementTest\\:\\:\\$prophecy has no typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php | ||
|
||
- | ||
message: "#^Method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\WillImplementTest\\:\\:createProphecy\\(\\) has no return typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
includes: | ||
- extension.neon | ||
- phpstan-with-extension-baseline.neon | ||
|
||
parameters: | ||
inferPrivatePropertyTypeFromConstructor: true | ||
level: max | ||
paths: | ||
- src/ | ||
- test/ | ||
tmpDir: .build/phpstan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Call to an undefined method Prophecy\\\\Prophecy\\\\ObjectProphecy\\:\\:bar\\(\\)\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/BaseModelTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$bar of method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Src\\\\BaseModel\\:\\:bar\\(\\) expects JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Src\\\\Bar, object given\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/BaseModelTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Prophecy\\\\Prophecy\\\\ObjectProphecy\\:\\:baz\\(\\)\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/BaseModelTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$baz of method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Src\\\\BaseModel\\:\\:baz\\(\\) expects JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Src\\\\Baz, object given\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/BaseModelTest.php | ||
|
||
- | ||
message: "#^Property JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\ProphesizeTest\\:\\:\\$prophecy has no typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/ProphesizeTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Prophecy\\\\Prophecy\\\\ObjectProphecy\\:\\:getFoo\\(\\)\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/ProphesizeTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Prophecy\\\\Prophecy\\\\ObjectProphecy\\:\\:doubleTheNumber\\(\\)\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/ProphesizeTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method object\\:\\:getFoo\\(\\)\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/ProphesizeTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method object\\:\\:doubleTheNumber\\(\\)\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/ProphesizeTest.php | ||
|
||
- | ||
message: "#^Method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\ProphesizeTest\\:\\:createProphecy\\(\\) has no return typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/ProphesizeTest.php | ||
|
||
- | ||
message: "#^Property JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\WillExtendTest\\:\\:\\$prophecy has no typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Prophecy\\\\Prophecy\\\\ObjectProphecy\\:\\:baz\\(\\)\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$baz of method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Src\\\\BaseModel\\:\\:baz\\(\\) expects JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Src\\\\Baz, object given\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php | ||
|
||
- | ||
message: "#^Method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\WillExtendTest\\:\\:createProphecy\\(\\) has no return typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillExtendTest.php | ||
|
||
- | ||
message: "#^Property JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\WillImplementTest\\:\\:\\$prophecy has no typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php | ||
|
||
- | ||
message: "#^Call to an undefined method Prophecy\\\\Prophecy\\\\ObjectProphecy\\:\\:bar\\(\\)\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$bar of method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Src\\\\BaseModel\\:\\:bar\\(\\) expects JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Src\\\\Bar, object given\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php | ||
|
||
- | ||
message: "#^Method JanGregor\\\\Prophecy\\\\Test\\\\StaticAnalysis\\\\Test\\\\ObjectProphecy\\\\WillImplementTest\\:\\:createProphecy\\(\\) has no return typehint specified\\.$#" | ||
count: 1 | ||
path: test/StaticAnalysis/Test/ObjectProphecy/WillImplementTest.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$declaringClass of class JanGregor\\\\Prophecy\\\\Reflection\\\\ObjectProphecyMethodReflection constructor expects PHPStan\\\\Reflection\\\\ClassReflection, object given\\.$#" | ||
count: 2 | ||
path: test/Unit/Reflection/ObjectProphecyMethodReflectionTest.php | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
includes: | ||
- phpstan-without-extension-baseline.neon | ||
|
||
parameters: | ||
inferPrivatePropertyTypeFromConstructor: true | ||
level: max | ||
paths: | ||
- src/ | ||
- test/ | ||
tmpDir: .build/phpstan |
This file was deleted.
Oops, something went wrong.