Skip to content

Commit

Permalink
Permit "superfluous" PHPDoc tags.
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelwilliams committed Mar 5, 2020
1 parent 50de52e commit 185c9b8
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .php_cs.dist
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
<?php

/*
* This file is part of PHP DNS Server.
*
* (c) Yif Swery <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

$header = <<<'EOF'
This file is part of PHP DNS Server.
Expand All @@ -17,12 +26,13 @@ $finder = PhpCsFixer\Finder::create()

$config = PhpCsFixer\Config::create()
->setRiskyAllowed(true)
->setRules(array(
->setRules([
'@Symfony' => true,
'header_comment' => array('header' => $header),
'array_syntax' => array('syntax' => 'short'),
))
'header_comment' => ['header' => $header],
'array_syntax' => ['syntax' => 'short'],
'no_superfluous_phpdoc_tags' => false,
])
->setFinder($finder)
;

return $config;
return $config;

0 comments on commit 185c9b8

Please sign in to comment.