1234567891011121314151617181920212223242526 |
- <?php
- /*
- * This file is part of PHP CS Fixer.
- *
- * (c) Fabien Potencier <fabien@symfony.com>
- * Dariusz Rumiński <dariusz.ruminski@gmail.com>
- *
- * This source file is subject to the MIT license that is bundled
- * with this source code in the file LICENSE.
- */
- $config = require '.php-cs-fixer.dist.php';
- $config->getFinder()->notPath([
- // @TODO 4.0 change interface to be fully typehinted and remove the exceptions from this list
- 'src/DocBlock/Annotation.php',
- 'src/Tokenizer/Tokens.php',
- ]);
- $config->setRules([
- 'phpdoc_to_param_type' => true, // EXPERIMENTAL rule, helping to ensure usage of 7.0+ typing
- 'phpdoc_to_return_type' => true, // EXPERIMENTAL rule, helping to ensure usage of 7.0+ typing
- ]);
- return $config;
|