-
Notifications
You must be signed in to change notification settings - Fork 3
/
rector.php
37 lines (32 loc) · 1.04 KB
/
rector.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
declare(strict_types=1);
/**
* Copyright (c) 2024 Benjamin Fahl
*
* For the full copyright and license information, please view
* the LICENSE.md file that was distributed with this source code.
*
* @see https://github.com/WebProject-xyz/ikea-tradfri-php
*/
use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/src',
__DIR__ . '/tests',
__DIR__ . '/wiki',
])
// uncomment to reach your current PHP version
->withPhpSets(
php82: true,
)
->withSets([
Rector\Symfony\Set\SymfonySetList::ANNOTATIONS_TO_ATTRIBUTES,
Rector\Symfony\Set\SymfonySetList::SYMFONY_64,
Rector\Symfony\Set\SymfonySetList::SYMFONY_CODE_QUALITY,
Rector\Symfony\Set\SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
Rector\Doctrine\Set\DoctrineSetList::DOCTRINE_CODE_QUALITY,
])
->withRules([
AddVoidReturnTypeWhereNoReturnRector::class,
]);