[TASK] Use @DoctrineAnnotation ruleset for php-cs-fixer 80/54780/2
authorAlexander Schnitzler <git@alexanderschnitzler.de>
Mon, 27 Nov 2017 10:36:48 +0000 (11:36 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Mon, 27 Nov 2017 11:39:54 +0000 (12:39 +0100)
As doctrine annotations have been introduced in the core
the ruleset for proper formatting should be enabled.

Releases: master
Resolves: #83110
Change-Id: I3269fb04f4c28c066615060f98cd54290e3b5b46
Reviewed-on: https://review.typo3.org/54780
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Build/.php_cs

index 70fdd0e..41f5e0e 100644 (file)
@@ -53,6 +53,7 @@ return PhpCsFixer\Config::create()
     ->setRiskyAllowed(true)
     ->setRules([
         '@PSR2' => true,
+        '@DoctrineAnnotation' => true,
         'no_leading_import_slash' => true,
         'no_trailing_comma_in_singleline_array' => true,
         'no_singleline_whitespace_before_semicolons' => true,