<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\TypeDeclaration\Rector\ClassMethod\AddVoidReturnTypeWhereNoReturnRector;

return RectorConfig::configure()
    ->withPaths([
        __DIR__ . '/vendors/libchart',
//        __DIR__ . '/config',
//        __DIR__ . '/controllers',
//        __DIR__ . '/models',
//        __DIR__ . '/plugins',
//        __DIR__ . '/tests',
//        __DIR__ . '/views',
//        __DIR__ . '/webroot',
    ])
    // uncomment to reach your current PHP version
//     ->withPhpSets(php53: true)
//    ->withPhpSets(php54: true)
//    ->withPhpSets(php55: true)
//    ->withPhpSets(php56: true)
//    ->withPhpSets(php70: true)
//    ->withPhpSets(php71: true)
//    ->withPhpSets(php72: true)
//    ->withPhpSets(php73: true)
//    ->withPhpSets(php74: true)
//    ->withPhpSets(php80: true)
//    ->withPhpSets(php81: true)
//    ->withPhpSets(php82: true)
    ->withPhpSets(php83: true)
    ->withRules([
        AddVoidReturnTypeWhereNoReturnRector::class,
    ]);
