Skip to content

Commit 59bcbf2

Browse files
committed
Added phpstan
1 parent b0beed4 commit 59bcbf2

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/)
66
and this project adheres to [Semantic Versioning](http://semver.org/).
77

8+
## [Unreleased]
9+
10+
### Fixed
11+
12+
- Use `phpstan` as a dev dependency to detect bugs
13+
814
## [1.1.0] - 2018-08-04
915

1016
### Added
@@ -70,7 +76,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
7076

7177
First version
7278

73-
79+
[Unreleased]: https://github.com/middlewares/trailing-slash/compare/v1.1.0...HEAD
7480
[1.1.0]: https://github.com/middlewares/trailing-slash/compare/v1.0.0...v1.1.0
7581
[1.0.0]: https://github.com/middlewares/trailing-slash/compare/v0.5.0...v1.0.0
7682
[0.5.0]: https://github.com/middlewares/trailing-slash/compare/v0.4.0...v0.5.0

composer.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"phpunit/phpunit": "^6.0|^7.0",
2626
"zendframework/zend-diactoros": "^1.3",
2727
"friendsofphp/php-cs-fixer": "^2.0",
28-
"squizlabs/php_codesniffer": "^3.0"
28+
"squizlabs/php_codesniffer": "^3.0",
29+
"phpstan/phpstan": "^0.9.2|^0.10.3"
2930
},
3031
"autoload": {
3132
"psr-4": {
@@ -40,6 +41,7 @@
4041
"scripts": {
4142
"test": [
4243
"phpunit --coverage-text",
44+
"phpstan analyse --no-progress --level 7 src",
4345
"phpcs"
4446
],
4547
"cs-fix": "php-cs-fixer fix .",

0 commit comments

Comments
 (0)