File tree Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Expand file tree Collapse file tree 3 files changed +3
-1
lines changed Original file line number Diff line number Diff line change 2727* Correct case for inherited and implemented method names.
2828* Contravariance for parameter types and covariance for return types in inherited methods (also known as Liskov substitution principle - LSP)
2929* Check LSP even for static methods
30+ * Check missing typehint in anonymous function when a native one could be added
3031
3132Additional rules are coming in subsequent releases!
3233
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ parameters:
66 checkAlwaysTrueStrictComparison : true
77 checkExplicitMixedMissingReturn : true
88 checkFunctionNameCase : true
9+ checkMissingClosureNativeReturnTypehintRule : true
910 reportMaybesInMethodSignatures : true
1011 reportStaticMethodSignatures : true
1112
Original file line number Diff line number Diff line change 11<?php
22
3- function () {
3+ function (): void {
44 foreach ([1 , 2 , 3 ] as $ val ) {
55 if (rand (0 , 1 ) === 0 ) {
66 break ;
You can’t perform that action at this time.
0 commit comments