Skip to content

Hi rector team! Is there a rector rule to remove named arguments #8995

Discussion options

You must be logged in to vote

So the latest config file might look like

<?php

use Rector\Config\RectorConfig;
use Rector\ValueObject\PhpVersion;
use Rector\DowngradePhp80\Rector\MethodCall\DowngradeNamedArgumentRector;

return RectorConfig::configure()
    ->withPhpVersion(PhpVersion::PHP_83)
    ->withRules([DowngradeNamedArgumentRector::class]);

Is it better?

Hope it helps someone that stumbled upon the same hurdle.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@alexandreelise
Comment options

Answer selected by alexandreelise
@alexandreelise
Comment options

@TomasVotruba
Comment options

@alexandreelise
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants