File tree 3 files changed +9
-0
lines changed
3 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 27
27
* Correct case for inherited and implemented method names.
28
28
* Contravariance for parameter types and covariance for return types in inherited methods (also known as Liskov substitution principle - LSP)
29
29
* Check LSP even for static methods
30
+ * Check missing typehint in anonymous function when a native one could be added
30
31
31
32
Additional rules are coming in subsequent releases!
32
33
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ parameters:
6
6
checkAlwaysTrueStrictComparison : true
7
7
checkExplicitMixedMissingReturn : true
8
8
checkFunctionNameCase : true
9
+ checkMissingClosureNativeReturnTypehintRule : true
9
10
reportMaybesInMethodSignatures : true
10
11
reportStaticMethodSignatures : true
11
12
Original file line number Diff line number Diff line change
1
+ [
2
+ {
3
+ "message" : " Anonymous function should have native typehint \" void\" ." ,
4
+ "line" : 3 ,
5
+ "ignorable" : true
6
+ }
7
+ ]
You can’t perform that action at this time.
0 commit comments