Skip to content

Commit

Permalink
Added phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
oscarotero committed Oct 8, 2018
1 parent aad3601 commit d35fdcb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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/).

## [Unreleased]

### Fixed

- Use `phpstan` as a dev dependency to detect bugs

## [2.1.0] - 2018-08-04

### Added
Expand Down Expand Up @@ -89,7 +95,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

First version


[Unreleased]: https://github.com/middlewares/payload/compare/v2.1.0...HEAD
[2.1.0]: https://github.com/middlewares/payload/compare/v2.0.0...v2.1.0
[2.0.0]: https://github.com/middlewares/payload/compare/v1.0.0...v2.0.0
[1.0.0]: https://github.com/middlewares/payload/compare/v0.6.0...v1.0.0
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@
"phpunit/phpunit": "^6.0|^7.0",
"zendframework/zend-diactoros": "^1.3",
"friendsofphp/php-cs-fixer": "^2.0",
"squizlabs/php_codesniffer": "^3.0"
"squizlabs/php_codesniffer": "^3.0",
"phpstan/phpstan": "^0.9.2|^0.10.3"
},
"suggest": {
"middlewares/csv-payload": "Adds support for parsing CSV body of request"
Expand All @@ -43,7 +44,8 @@
},
"scripts": {
"test": [
"phpunit --coverage-text --coverage-text",
"phpunit --coverage-text",
"phpstan analyse --no-progress --level 7 src",
"phpcs"
],
"cs-fix": "php-cs-fixer fix .",
Expand Down

0 comments on commit d35fdcb

Please sign in to comment.