|
1 | 1 | # Changelog |
2 | 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.1](https://github.com/CodeIgniter/phpstan-codeigniter/compare/v1.0.0...v1.0.1) - 2023年08月30日 |
8 | | - |
9 | | -### Fixed |
10 | | - |
11 | | -* Add changelog |
12 | | -* Fix wrong namespace of tests |
13 | | -* Add missing trailing comma |
14 | | - |
15 | | -## [v1.0.0](https://github.com/CodeIgniter/phpstan-codeigniter/releases/tag/v1.0.0) - 2023年08月27日 |
16 | | - |
17 | | -### Initial release |
18 | | - |
19 | | -This PHPStan extension provides the following features: |
20 | | - |
21 | | -#### Type Inference |
22 | | - |
23 | | -* Provides precise return types for `config()` and `model()` functions. |
24 | | -* Provides precise return types for `service()` and `single_service()` functions. |
25 | | - |
26 | | -#### Rules |
27 | | - |
28 | | -* 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`. |
29 | | -* 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`. |
30 | | -* Disallows instantiating cache handlers using `new` and suggests using the `CacheFactory` class instead. |
31 | | -* Disallows instantiating `FrameworkException` classes using `new`. |
32 | | -* Disallows direct re-assignment or access of `$_SERVER` and `$_GET` and suggests using the `Superglobals` class instead. |
| 3 | +All releases have their changelog [published in the Releases section](https://github.com/CodeIgniter/phpstan-codeigniter/releases). |
0 commit comments