Files
Epicnabbo-Catalogus-Updated…/Updated_Cms/rector.php
T
2026-01-07 20:01:53 +01:00

33 lines
958 B
PHP

<?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
use Rector\ValueObject\PhpVersion;
// Voeg deze import toe:
use RectorLaravel\Set\LaravelLevelSetList;
use RectorLaravel\Set\LaravelSetList;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/app',
__DIR__ . '/bootstrap',
__DIR__ . '/config',
__DIR__ . '/resources', // Belangrijk voor Blade/Thema logica
__DIR__ . '/routes',
])
->withPhpVersion(PhpVersion::PHP_85)
->withSets([
LevelSetList::UP_TO_PHP_85,
// Dit activeert de gratis "Laravel Shift" naar versie 12:
LaravelLevelSetList::UP_TO_LARAVEL_120,
LaravelSetList::LARAVEL_CODE_QUALITY,
SetList::CODE_QUALITY,
SetList::DEAD_CODE,
])
->withSkip([
__DIR__ . '/lang/vendor',
__DIR__ . '/storage', // Altijd overslaan
]);