12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- declare(strict_types=1);
- if (PHP_VERSION_ID < 70400 || PHP_VERSION_ID >= 70500) {
- fwrite(STDERR, "PHP CS Fixer's config for PHP-LOWEST can be executed only on lowest supported PHP version - ~7.4.0.\n");
- fwrite(STDERR, "Running it on higher PHP version would falsy expect more changes, eg `mixed` type on PHP 8.\n");
- exit(1);
- }
- $config = require __DIR__.'/.php-cs-fixer.dist.php';
- $config->getFinder()->notPath([
-
- 'src/DocBlock/Annotation.php',
- 'src/Doctrine/Annotation/Tokens.php',
- 'src/Tokenizer/Tokens.php',
- 'src/Runner/Runner.php',
- ]);
- $config->setRules([
- 'phpdoc_to_param_type' => true,
- 'phpdoc_to_return_type' => true,
- ]);
- return $config;
|