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
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,8 +9,13 @@
9
9
10
10
This extension provides the following features:
11
11
12
+
### Type Inference
13
+
12
14
* Provides precise return types for `config()` and `model()` functions.
13
15
* Provides precise return types for `service()` and `single_service()` functions.
16
+
17
+
### Rules
18
+
14
19
* 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`.
15
20
* 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`.
16
21
* Disallows instantiating cache handlers using `new` and suggests to use the `CacheFactory` class instead.
0 commit comments