amitmerchant1990 / amitmerchant-dot-com-comments

1 stars 0 forks source link

upgrade-php-code-to-php-8-2-features-using-rector/ #72

Open utterances-bot opened 1 year ago

utterances-bot commented 1 year ago

Upgrade your PHP code to use PHP 8.2 features using Rector — Amit Merchant — A blog on PHP, JavaScript, and more

In this post, I’ll show you how to upgrade your PHP code to use PHP 8.2 features using Rector. I have written articles about how to upgrade to PHP 8 and PHP 8.1 previously.

https://www.amitmerchant.com/upgrade-php-code-to-php-8-2-features-using-rector/

dr41d45 commented 1 year ago

Thanks! Vary valeted tip! My remark that ContainerConfigurator $containerConfigurator in the sample was deprecated since


April 2022 Update

Since Rector 0.12 a new RectorConfig is available with simpler and easier to use config methods.

so the sample expected to be

return function (RectorConfig $rectorConfig): void {
    $rectorConfig->sets([