-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Static analysis & Travis updates (#1861)
* Add phpstan static analysis to travis config * Add phpstan configuration * Add PHP 7.4 to travis CI * Config changes * Add changelog * Update contributing guidelines
- Loading branch information
1 parent
1bb860e
commit c5c8eab
Showing
4 changed files
with
73 additions
and
4 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[ | ||
{ | ||
"type": "enhancement", | ||
"category": "", | ||
"description": "Added static code analysis using PHPStan to Travis CI configuration." | ||
} | ||
] |
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,22 @@ | ||
parameters: | ||
|
||
level: 0 | ||
|
||
excludes_analyse: | ||
# Guzzle V5 classes & interfaces changed in V6 | ||
- %rootDir%/../../../src/Handler/GuzzleV5/* | ||
|
||
ignoreErrors: | ||
# Intentional | ||
- '#Aws\\Api\\Parser\\Crc32ValidatingParser::__construct\(\) does not call parent constructor from Aws\\Api\\Parser\\AbstractParser\.#' | ||
- '#Aws\\S3\\(RetryableMalformedResponse|GetBucketLocation|AmbiguousSuccess)Parser::__construct\(\) does not call parent constructor from Aws\\Api\\Parser\\AbstractParser\.#' | ||
|
||
# HashContext definition sometimes not found by static analysis | ||
- '#Property Aws\\PhpHash::\$context has unknown class HashContext as its type\.#' | ||
- '#Property Aws\\Api\\Parser\\DecodingEventStreamIterator::\$hashContext has unknown class HashContext as its type\.#' | ||
- '#Return typehint of method Aws\\PhpHash::getContext\(\) has invalid type HashContext\.#' | ||
|
||
# Guzzle V5 classes & interfaces changed in V6 | ||
- '#Call to an undefined static method GuzzleHttp\\Client::getDefaultUserAgent\(\)\.#' | ||
|
||
reportUnmatchedIgnoredErrors: false |