You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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