@@ -30,26 +30,28 @@ PHPCBF CAN FIX THE 2 MARKED SNIFF VIOLATIONS AUTOMATICALLY
30
30
31
31
FILE: tests/incorrect/type-hints.php
32
32
------------------------------------------------------------------------------------------------------------------------
33
- FOUND 11 ERRORS AFFECTING 8 LINES
33
+ FOUND 13 ERRORS AFFECTING 10 LINES
34
34
------------------------------------------------------------------------------------------------------------------------
35
35
9 | ERROR | [x] Function doesNotNeedDocumentationComment() does not need documentation comment.
36
- 13 | ERROR | [x] There must be no whitespace between parameter type hint nullability symbol and parameter type hint of
36
+ 16 | ERROR | [x] Function uselessReturnAnnotation() has useless @return annotation.
37
+ 23 | ERROR | [x] Function uselessParamAnnotation() has useless @param annotation for parameter $string.
38
+ 32 | ERROR | [x] There must be no whitespace between parameter type hint nullability symbol and parameter type hint of
37
39
| | parameter $input.
38
- 17 | ERROR | [x] There must be exactly one space between return type hint colon and return type hint.
39
- 17 | ERROR | [x] There must be no whitespace between closing parenthesis and return type colon.
40
- 21 | ERROR | [ ] Function missingTypeHints() does not have parameter type hint nor @param annotation for its parameter
40
+ 36 | ERROR | [x] There must be exactly one space between return type hint colon and return type hint.
41
+ 36 | ERROR | [x] There must be no whitespace between closing parenthesis and return type colon.
42
+ 40 | ERROR | [ ] Function missingTypeHints() does not have parameter type hint nor @param annotation for its parameter
41
43
| | $input.
42
- 21 | ERROR | [ ] Function missingTypeHints() does not have return type hint nor @return annotation for its return
44
+ 40 | ERROR | [ ] Function missingTypeHints() does not have return type hint nor @return annotation for its return
43
45
| | value.
44
- 26 | ERROR | [ ] Function missingTraversableAnnotations() does not have @param annotation for its traversable
46
+ 45 | ERROR | [ ] Function missingTraversableAnnotations() does not have @param annotation for its traversable
45
47
| | parameter $input.
46
- 26 | ERROR | [ ] Function missingTraversableAnnotations() does not have @return annotation for its traversable return
48
+ 45 | ERROR | [ ] Function missingTraversableAnnotations() does not have @return annotation for its traversable return
47
49
| | value.
48
- 30 | ERROR | [x] Parameter $input has null default value, but is not marked as nullable.
49
- 35 | ERROR | [x] Expected "int" but found "integer" in @param annotation.
50
- 37 | ERROR | [x] Expected "bool" but found "boolean" in @return annotation.
50
+ 49 | ERROR | [x] Parameter $input has null default value, but is not marked as nullable.
51
+ 54 | ERROR | [x] Expected "int" but found "integer" in @param annotation.
52
+ 56 | ERROR | [x] Expected "bool" but found "boolean" in @return annotation.
51
53
------------------------------------------------------------------------------------------------------------------------
52
- PHPCBF CAN FIX THE 7 MARKED SNIFF VIOLATIONS AUTOMATICALLY
54
+ PHPCBF CAN FIX THE 9 MARKED SNIFF VIOLATIONS AUTOMATICALLY
53
55
------------------------------------------------------------------------------------------------------------------------
54
56
55
57
0 commit comments