-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generics + better doc types PHPStan/psalm (#138)
* introduce phpstan analizing and document generics * phpstan 0.12.7 * rebase fixes + PHPStan update * fixes
- Loading branch information
Showing
30 changed files
with
609 additions
and
332 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
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,19 @@ | ||
parameters: | ||
ignoreErrors: | ||
# EnumSet internally handles a bitset to be either an integer or a string | ||
- message: '#Binary operation "[\|\&\^]" between int\|string and int\|string results in an error#' | ||
path: %currentWorkingDirectory%/src/EnumSet.php | ||
|
||
# EnumSerializableTrait | ||
- message: '#Access to private property \$[a-z]+ of parent class MabeEnum\\Enum#' | ||
path: %currentWorkingDirectory%/src/EnumSerializableTrait.php | ||
- message: '#Access to an undefined static property MabeEnumTest\\TestAsset\\SerializableEnum::\$instances#' | ||
path: %currentWorkingDirectory%/src/EnumSerializableTrait.php | ||
|
||
# Tests | ||
- message: '#Parameter \#\d \$[a-z]* of static method MabeEnum\\Enum::[^ ]* expects [^ ]*, .+ given#' | ||
path: %currentWorkingDirectory%/tests/ | ||
- message: '#Parameter \#\d \$[a-z]* of method MabeEnum\\EnumSet<[^ ]*>::[^ ]* expects [^ ]*, .+ given#' | ||
path: %currentWorkingDirectory%/tests/ | ||
- message: '#Parameter \#\d \$[a-z]* of class MabeEnum\\Enum(Set|Map) constructor expects class-string<T of MabeEnum\\Enum>, string given#' | ||
path: %currentWorkingDirectory%/tests/ |
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
Oops, something went wrong.