File tree Expand file tree Collapse file tree 4 files changed +35
-2
lines changed
Expand file tree Collapse file tree 4 files changed +35
-2
lines changed Original file line number Diff line number Diff line change 270270 <rule ref =" SlevomatCodingStandard.Operators.DisallowEqualOperators" />
271271 <!-- Require the usage of assignment operators, eg `+=`, `.=` when possible -->
272272 <rule ref =" SlevomatCodingStandard.Operators.RequireCombinedAssignmentOperator" />
273+ <!-- Require no spacing after spread operator -->
274+ <rule ref =" SlevomatCodingStandard.Operators.SpreadOperatorSpacing" />
273275 <!-- forbid argument unpacking for functions specialized by PHP VM -->
274276 <rule ref =" SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking" />
275277 <!-- Forbid `list(...)` syntax -->
Original file line number Diff line number Diff line change @@ -23,6 +23,7 @@ tests/input/optimized-functions.php 1 0
2323tests/input/return_type_on_closures.php 21 0
2424tests/input/return_type_on_methods.php 17 0
2525tests/input/semicolon_spacing.php 3 0
26+ tests/input/spread-operator.php 6 0
2627tests/input/static-closures.php 1 0
2728tests/input/test-case.php 8 0
2829tests/input/trailing_comma_on_array.php 1 0
@@ -31,9 +32,9 @@ tests/input/UnusedVariables.php 1 0
3132tests/input/useless-semicolon.php 2 0
3233tests/input/UselessConditions.php 20 0
3334----------------------------------------------------------------------
34- A TOTAL OF 238 ERRORS AND 0 WARNINGS WERE FOUND IN 27 FILES
35+ A TOTAL OF 244 ERRORS AND 0 WARNINGS WERE FOUND IN 28 FILES
3536----------------------------------------------------------------------
36- PHPCBF CAN FIX 202 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
37+ PHPCBF CAN FIX 208 OF THESE SNIFF VIOLATIONS AUTOMATICALLY
3738----------------------------------------------------------------------
3839
3940
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ static function (...$ x ) : void {
6+ }
7+ static function (int ...$ x ) : void {
8+ }
9+ static function ($ x , ...$ y ) : void {
10+ }
11+ static function (int $ x , int ...$ y ) : void {
12+ }
13+
14+ foo (...$ x );
15+ foo ($ x , ...$ y );
Original file line number Diff line number Diff line change 1+ <?php
2+
3+ declare (strict_types=1 );
4+
5+ static function (... $ x ) : void {
6+ }
7+ static function (int ... $ x ) : void {
8+ }
9+ static function ($ x , ... $ y ) : void {
10+ }
11+ static function (int $ x , int ... $ y ) : void {
12+ }
13+
14+ foo (... $ x );
15+ foo ($ x , ... $ y );
You can’t perform that action at this time.
0 commit comments