-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add PHPStan to build, fix errors it revealed (#10)
- Loading branch information
Showing
12 changed files
with
88 additions
and
35 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,10 +1,12 @@ | ||
language: php | ||
php: | ||
- '7.0' | ||
- '7.1' | ||
- '7.2' | ||
- '7.3' | ||
install: | ||
- composer install --no-interaction --no-progress --no-suggest --prefer-dist | ||
script: vendor/bin/phpunit --coverage-text --whitelist src/ tests/ | ||
script: | ||
- vendor/bin/phpunit --coverage-text --whitelist src/ tests/ | ||
- composer phpstan | ||
after_success: | ||
- travis_retry vendor/bin/php-coveralls |
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,51 @@ | ||
# Changelog | ||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). | ||
|
||
## [2.1.3] - 2019-01-16 | ||
### Summary | ||
- Fixes some erroneously defined PHPDoc type signatures | ||
- Adds PHPStan to CI | ||
- Stops testing against PHP 7.0, which is no longer maintained | ||
|
||
## [2.1.2] - 2018-09-20 | ||
### Summary | ||
- Fixes an issue where default values were erroneously returned where `null` was a valid value | ||
|
||
## [2.1.1] - 2018-05-16 | ||
### Summary | ||
- Fixes regression in 2.1.0 that created a breaking change without an appropriate SemVer bump | ||
|
||
## [2.1.0] - 2018-03-18 | ||
### Summary | ||
- Configures CI | ||
- Adds support for default values on optional parameters | ||
- Exposes additional information about validation errors | ||
|
||
## [2.0.0] - 2015-10-21 | ||
### Summary | ||
- PHP 7 Support | ||
- Adds return types | ||
- Adds scalar type hints | ||
|
||
## [1.0.0] - 2015-10-21 | ||
### Summary | ||
- First stable release (no major changes) | ||
|
||
## [0.0.4: Add SafeInputTestTrait] - 2015-10-08 | ||
### Summary | ||
- Adds SafeInputTestTrait | ||
|
||
## [0.0.3] - 2015-09-19 | ||
### Summary | ||
- Changes InputException to extend UnexpectedValueException | ||
|
||
## [0.0.2] - 2015-09-17 | ||
### Summary | ||
- Add ValidationInterface test trait | ||
- Moved InputObjects to a separate repository | ||
|
||
## [0.0.1] - 2015-09-01 | ||
### Summary | ||
- Initial release |
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,6 @@ | ||
includes: | ||
- vendor/phpstan/phpstan-phpunit/extension.neon | ||
parameters: | ||
excludes_analyse: | ||
- %rootDir%/../../../vendor | ||
level: 7 |
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
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