File tree Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Expand file tree Collapse file tree 1 file changed +13
-4
lines changed Original file line number Diff line number Diff line change @@ -25,10 +25,6 @@ It's an abstract class that needs to be extended to use it.
25
25
26
26
# Usage
27
27
28
- ## PHPDoc
29
-
30
- You can find auto-generated PHP documentation in the [ wiki] ( https://github.com/marc-mabe/php-enum/wiki ) .
31
-
32
28
## Basics
33
29
34
30
``` php
@@ -411,6 +407,19 @@ var_dump($north2->is($north1)); // returns TRUE - equality works in both directi
411
407
```
412
408
413
409
410
+ # Generics and Static Code Analyzer
411
+
412
+ With version 4.3 we have added support for generics and added better type support.
413
+
414
+ * ` EnumSet<T of Enum> `
415
+ * ` EnumMap<T of Enum> `
416
+
417
+ Generic types will be detected by [ PHPStan] ( https://phpstan.org/ ) and [ Psaml] ( https://psalm.dev/ ) .
418
+
419
+ Additionally, we have developed an [ extension for PHPStan] ( https://github.com/marc-mabe/php-enum-phpstan/ )
420
+ to make enumerator accessor methods known.
421
+
422
+
414
423
# Why not ` SplEnum `
415
424
416
425
* ` SplEnum ` is not built-in into PHP and requires pecl extension installed.
You can’t perform that action at this time.
0 commit comments