-
Notifications
You must be signed in to change notification settings - Fork 2
Github Actions: Add Phpstan #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
+102
−29
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
6dfe7e4
workflows: Add phpstan
yhabteab 81d7983
Add argument & return type value hints
yhabteab c6bc8f8
Filter: Set wildcard sub segments to empty array in case of an error
yhabteab 10fc160
PriorityQueue: Add property `$serial` type hint
yhabteab 55b6830
Add phpstan `baseline` config
yhabteab File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,46 @@ | ||
parameters: | ||
ignoreErrors: | ||
- | ||
message: "#^Cannot cast mixed to string\\.$#" | ||
count: 2 | ||
path: src/Filter.php | ||
|
||
- | ||
message: "#^Dead catch \\- Exception is never thrown in the try block\\.$#" | ||
count: 1 | ||
path: src/Filter.php | ||
|
||
- | ||
message: "#^Class ipl\\\\Stdlib\\\\Filter\\\\Chain implements generic interface IteratorAggregate but does not specify its types\\: TKey, TValue$#" | ||
count: 1 | ||
path: src/Filter/Chain.php | ||
|
||
- | ||
message: "#^Cannot access offset 'data' on mixed\\.$#" | ||
count: 1 | ||
path: src/PriorityQueue.php | ||
|
||
- | ||
message: "#^Cannot access offset 'priority' on mixed\\.$#" | ||
count: 1 | ||
path: src/PriorityQueue.php | ||
|
||
- | ||
message: "#^Cannot access offset 0 on mixed\\.$#" | ||
count: 1 | ||
path: src/PriorityQueue.php | ||
|
||
- | ||
message: "#^Class ipl\\\\Stdlib\\\\PriorityQueue extends generic class SplPriorityQueue but does not specify its types\\: TPriority, TValue$#" | ||
count: 1 | ||
path: src/PriorityQueue.php | ||
|
||
- | ||
message: "#^Trying to invoke mixed but it's not a callable\\.$#" | ||
count: 2 | ||
path: src/Seq.php | ||
|
||
- | ||
message: "#^Parameter \\#1 \\$separator of function explode expects non\\-empty\\-string, string given\\.$#" | ||
count: 3 | ||
path: src/Str.php |
This file contains hidden or 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,15 @@ | ||
includes: | ||
- phpstan-baseline.neon | ||
|
||
parameters: | ||
level: max | ||
|
||
checkFunctionNameCase: true | ||
checkInternalClassCaseSensitivity: true | ||
treatPhpDocTypesAsCertain: false | ||
|
||
paths: | ||
- src | ||
|
||
scanDirectories: | ||
- vendor |
This file contains hidden or 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 hidden or 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 |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
|
||
class Data | ||
{ | ||
/** @var array */ | ||
/** @var array<string, mixed> */ | ||
protected $data = []; | ||
|
||
/** | ||
|
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.