Skip to content

Commit c37e658

Browse files
committed
Add changelog
1 parent 602baf4 commit c37e658

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

CHANGELOG.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
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

Comments
 (0)