Skip to content

Commit fdfca14

Browse files
committed
Add subgroups for the provided features
1 parent 36c4865 commit fdfca14

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@
99

1010
This extension provides the following features:
1111

12+
### Type Inference
13+
1214
* Provides precise return types for `config()` and `model()` functions.
1315
* Provides precise return types for `service()` and `single_service()` functions.
16+
17+
### Rules
18+
1419
* 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`.
1520
* 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`.
1621
* Disallows instantiating cache handlers using `new` and suggests to use the `CacheFactory` class instead.

0 commit comments

Comments
 (0)