|
3 | 3 | /* |
4 | 4 | * This file is part of the CleverAge/DoctrineProcessBundle package. |
5 | 5 | * |
6 | | - * Copyright (c) 2017-2023 Clever-Age |
| 6 | + * Copyright (c) Clever-Age |
7 | 7 | * |
8 | 8 | * For the full copyright and license information, please view the LICENSE |
9 | 9 | * file that was distributed with this source code. |
|
14 | 14 | } |
15 | 15 |
|
16 | 16 | $fileHeaderComment = <<<'EOF' |
17 | | -This file is part of the CleverAge/DoctrineProcessBundle package. |
| 17 | + This file is part of the CleverAge/DoctrineProcessBundle package. |
18 | 18 |
|
19 | | -Copyright (c) 2017-2023 Clever-Age |
| 19 | + Copyright (c) Clever-Age |
20 | 20 |
|
21 | | -For the full copyright and license information, please view the LICENSE |
22 | | -file that was distributed with this source code. |
23 | | -EOF; |
| 21 | + For the full copyright and license information, please view the LICENSE |
| 22 | + file that was distributed with this source code. |
| 23 | + EOF; |
24 | 24 |
|
25 | 25 | return (new PhpCsFixer\Config()) |
26 | 26 | ->setRules([ |
27 | 27 | '@PHP71Migration' => true, |
| 28 | + '@PHP82Migration' => true, |
28 | 29 | '@PHPUnit75Migration:risky' => true, |
29 | 30 | '@Symfony' => true, |
30 | 31 | '@Symfony:risky' => true, |
| 32 | + '@DoctrineAnnotation' => true, |
31 | 33 | 'protected_to_private' => false, |
32 | 34 | 'native_constant_invocation' => ['strict' => false], |
33 | 35 | 'header_comment' => ['header' => $fileHeaderComment], |
34 | 36 | 'modernize_strpos' => true, |
35 | 37 | 'get_class_to_class_keyword' => true, |
| 38 | + 'phpdoc_to_comment' => ['ignored_tags' => ['var']], // Fix issue on initializeStatement method $params variable |
36 | 39 | ]) |
37 | 40 | ->setRiskyAllowed(true) |
38 | 41 | ->setFinder( |
39 | 42 | (new PhpCsFixer\Finder()) |
40 | 43 | ->in(__DIR__.'/src') |
| 44 | + ->in(__DIR__.'/tests') |
41 | 45 | ->append([__FILE__]) |
42 | 46 | ) |
43 | 47 | ->setCacheFile('.php-cs-fixer.cache') |
|
0 commit comments