Skip to content

Commit f439204

Browse files
authored
Merge pull request #299 from clue-labs/phpstan-update
Update PHPStan and add to documentation
2 parents a03ae05 + 6a668d7 commit f439204

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![CI status](https://github.com/clue-access/framework-x/workflows/CI/badge.svg)](https://github.com/clue-access/framework-x/actions)
44
[![code coverage](https://img.shields.io/badge/code%20coverage-100%25-success)](#tests)
5+
[![PHPStan level](https://img.shields.io/badge/PHPStan%20level-max-success)](#tests)
56
[![installs on Packagist](https://img.shields.io/packagist/dt/clue/framework-x?color=blue&label=installs%20on%20Packagist)](https://packagist.org/packages/clue/framework-x)
67

78
Framework X – the simple and fast micro framework for building reactive web applications that run anywhere.
@@ -140,6 +141,12 @@ $ php tests/integration/public/index.php
140141
$ tests/integration.bash http://localhost:8080/
141142
```
142143

144+
On top of this, we use PHPStan on max level to ensure type safety across the project:
145+
146+
```bash
147+
$ vendor/bin/phpstan
148+
```
149+
143150
## License
144151

145152
This project is released under the permissive [MIT license](LICENSE).

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"react/socket": "^1.17"
2020
},
2121
"require-dev": {
22-
"phpstan/phpstan": "1.12.11 || 1.4.10",
22+
"phpstan/phpstan": "1.12.32 || 1.4.10",
2323
"phpunit/phpunit": "^9.6 || ^7.5",
2424
"psr/container": "^2 || ^1"
2525
},

0 commit comments

Comments
 (0)