diff --git a/lib/Doctrine/ruleset.xml b/lib/Doctrine/ruleset.xml index 064542a3..3a86fa70 100644 --- a/lib/Doctrine/ruleset.xml +++ b/lib/Doctrine/ruleset.xml @@ -375,6 +375,7 @@ + diff --git a/tests/expected_report.txt b/tests/expected_report.txt index 31ba75c8..3e89acb7 100644 --- a/tests/expected_report.txt +++ b/tests/expected_report.txt @@ -24,13 +24,14 @@ tests/input/return_type_on_methods.php 17 0 tests/input/semicolon_spacing.php 3 0 tests/input/static-closures.php 1 0 tests/input/test-case.php 8 0 +tests/input/trailling_comma_on_associative_array.php 1 0 tests/input/traits-uses.php 11 0 tests/input/UnusedVariables.php 1 0 tests/input/useless-semicolon.php 2 0 ---------------------------------------------------------------------- -A TOTAL OF 215 ERRORS AND 0 WARNINGS WERE FOUND IN 24 FILES +A TOTAL OF 216 ERRORS AND 0 WARNINGS WERE FOUND IN 25 FILES ---------------------------------------------------------------------- -PHPCBF CAN FIX 185 OF THESE SNIFF VIOLATIONS AUTOMATICALLY +PHPCBF CAN FIX 186 OF THESE SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- diff --git a/tests/fixed/trailling_comma_on_associative_array.php b/tests/fixed/trailling_comma_on_associative_array.php new file mode 100644 index 00000000..4fe31829 --- /dev/null +++ b/tests/fixed/trailling_comma_on_associative_array.php @@ -0,0 +1,7 @@ + 'value', +]; diff --git a/tests/input/trailling_comma_on_associative_array.php b/tests/input/trailling_comma_on_associative_array.php new file mode 100644 index 00000000..1593b5b4 --- /dev/null +++ b/tests/input/trailling_comma_on_associative_array.php @@ -0,0 +1,7 @@ + 'value' +];