|
| 1 | +# Changelog |
| 2 | + |
| 3 | +All notable changes to this library will be documented in this file. |
| 4 | + |
| 5 | +This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). |
| 6 | + |
| 7 | +## [v1.0.0](https://github.com/CodeIgniter/phpstan-codeigniter/releases/tag/v1.0.0) - 2021年08月27日 |
| 8 | + |
| 9 | +### Initial release |
| 10 | + |
| 11 | +This PHPStan extension provides the following features: |
| 12 | + |
| 13 | +#### Type Inference |
| 14 | + |
| 15 | +* Provides precise return types for `config()` and `model()` functions. |
| 16 | +* Provides precise return types for `service()` and `single_service()` functions. |
| 17 | + |
| 18 | +#### Rules |
| 19 | + |
| 20 | +* Checks if the string argument passed to `config()` or `model()` function is a valid class string extending `CodeIgniter\Config\BaseConfig` or `CodeIgniter\Model`, respectively. This can be turned off by setting `codeigniter.checkArgumentTypeOfFactories: false` in your `phpstan.neon`. |
| 21 | +* Checks if the string argument passed to `service()` or `single_service()` function is a valid service name. This can be turned off by setting `codeigniter.checkArgumentTypeOfServices: false` in your `phpstan.neon`. |
| 22 | +* Disallows instantiating cache handlers using `new` and suggests using the `CacheFactory` class instead. |
| 23 | +* Disallows instantiating `FrameworkException` classes using `new`. |
| 24 | +* Disallows direct re-assignment or access of `$_SERVER` and `$_GET` and suggests using the `Superglobals` class instead. |
0 commit comments