diff --git a/README.md b/README.md index fd608c7..5048216 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ [![CI status](https://github.com/clue-access/framework-x/workflows/CI/badge.svg)](https://github.com/clue-access/framework-x/actions) [![code coverage](https://img.shields.io/badge/code%20coverage-100%25-success)](#tests) +[![PHPStan level](https://img.shields.io/badge/PHPStan%20level-max-success)](#tests) [![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) 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 $ tests/integration.bash http://localhost:8080/ ``` +On top of this, we use PHPStan on max level to ensure type safety across the project: + +```bash +$ vendor/bin/phpstan +``` + ## License This project is released under the permissive [MIT license](LICENSE). diff --git a/composer.json b/composer.json index 7620223..f2d3751 100644 --- a/composer.json +++ b/composer.json @@ -19,7 +19,7 @@ "react/socket": "^1.17" }, "require-dev": { - "phpstan/phpstan": "1.12.11 || 1.4.10", + "phpstan/phpstan": "1.12.32 || 1.4.10", "phpunit/phpunit": "^9.6 || ^7.5", "psr/container": "^2 || ^1" },