diff --git a/composer.json b/composer.json index db15e75a..dfcf7c17 100644 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "require": { "php": "^7.2 || ^8.0", "dealerdirect/phpcodesniffer-composer-installer": "^0.6.2 || ^0.7", - "slevomat/coding-standard": "^8.5.1", + "slevomat/coding-standard": "^8.6", "squizlabs/php_codesniffer": "^3.7" }, "config": { diff --git a/lib/Doctrine/ruleset.xml b/lib/Doctrine/ruleset.xml index 05a0d89c..2c5a109e 100644 --- a/lib/Doctrine/ruleset.xml +++ b/lib/Doctrine/ruleset.xml @@ -110,6 +110,14 @@ error + + + + + + + + diff --git a/tests/expected_report.txt b/tests/expected_report.txt index de60dbe3..9e34caa5 100644 --- a/tests/expected_report.txt +++ b/tests/expected_report.txt @@ -6,6 +6,7 @@ FILE ERRORS WARNINGS tests/input/array_indentation.php 10 0 tests/input/arrow-functions-format.php 10 0 tests/input/assignment-operators.php 4 0 +tests/input/attributes.php 15 0 tests/input/binary_operators.php 9 0 tests/input/class-references.php 10 0 tests/input/ClassPropertySpacing.php 2 0 @@ -51,9 +52,9 @@ tests/input/use-ordering.php 1 0 tests/input/useless-semicolon.php 2 0 tests/input/UselessConditions.php 21 0 ---------------------------------------------------------------------- -A TOTAL OF 437 ERRORS AND 0 WARNINGS WERE FOUND IN 47 FILES +A TOTAL OF 452 ERRORS AND 0 WARNINGS WERE FOUND IN 48 FILES ---------------------------------------------------------------------- -PHPCBF CAN FIX 370 OF THESE SNIFF VIOLATIONS AUTOMATICALLY +PHPCBF CAN FIX 374 OF THESE SNIFF VIOLATIONS AUTOMATICALLY ---------------------------------------------------------------------- diff --git a/tests/fixed/attributes.php b/tests/fixed/attributes.php new file mode 100644 index 00000000..2fcb6cc9 --- /dev/null +++ b/tests/fixed/attributes.php @@ -0,0 +1,32 @@ +