File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -600,11 +600,18 @@ function example($unknown) {
600
600
```
601
601
602
602
### forbidNotNormalizedType
603
- - Reports any PhpDoc or native type that is not normalized, which can be:
603
+ - Reports PhpDoc or native type that is not normalized, which can be:
604
604
- when child and parent appears in its union or intersection
605
605
- when same type appears multiple times in its union or intersection
606
606
- when DNF is not used
607
607
- configurable by ` checkDisjunctiveNormalForm `
608
+ - supports:
609
+ - parameter typehints & ` @param ` phpdoc
610
+ - return typehint & ` @return ` phpdoc
611
+ - property typehint & ` @var ` phpdoc
612
+ - inline ` @var ` phpdoc
613
+ - ` @throws ` phpdoc
614
+ - multi-catch statements
608
615
- Main motivation here is that PHPStan normalizes all types before analysis, so it is better to see it in codebase the same way PHPStan does
609
616
610
617
``` php
You can’t perform that action at this time.
0 commit comments