amitmerchant1990 / amitmerchant-dot-com-comments

1 stars 0 forks source link

how-to-upgrade-application-codebase-to-use-PHP-8-features-rector/ #62

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

How to upgrade legacy codebase to use PHP 8.0 features using Rector — Amit Merchant — A blog on PHP, JavaScript, and more

The newest version of PHP, the PHP 8.0, is coming later this year (November 26, 2020) and it will come packed with many new features such as constructor property promotion, match expressions, nullsafe operator, attributes and a lot others.

https://www.amitmerchant.com/how-to-upgrade-application-codebase-to-use-PHP-8-features-rector/

adrovz commented 1 year ago

Hi, where are you running rector? I've tried locally manually, in PHPstorm and on linux server, but always no output is generated, just blank, no errors, nothing :S

jtyranski commented 1 year ago

@adrovz Try running from command line after installing. Maybe first checkout https://getrector.org/ and do the 'Getting Started'. If you can do that, this article will be easy.

jfkproductions commented 11 months ago

I am keep on getting the error with rector.php Rector\Config\RectorConfig::{closure}(): Argument #1 ($containerConfigurator) must be of type Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator, Rector\Config\RectorConfig given,