.php-cs-fixer.php70types.php 753 B

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