rectorphp/rector
View on GitHub ↗ ★ 10,494 PHP
Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
12 mentions on Hacker News by 11 people: 1 story, 11 comments · first 2019-07-04 · latest 2024-11-22
20082026
-
Like everything... It depends. Just use rector https://github.com/rectorphp/rector
comment by hparadiz · 2024-11-15 · in Upcoming Hardening in PHP -
…Symfony. Not to mention PHP has mature tooling to perform automated code upgrade between versions: https://github.com/rectorphp/rector The project I mentioned was 4 years old and so far no code change was required between PHP 7.2 and PHP…
comment by hu3 · 2024-02-07 · in jQuery v4.0 Beta -
Also, see this: https://github.com/rectorphp/rector Instant Upgrades and Automated Refactoring of any PHP 5.3+ code
comment by ofrzeta · 2023-02-15 · in Ask HN: What is the most pleasant, uncomplicated full stack to start with? -
…previous version of Laravel. With the help of rector, it should be an afternoon's work to upgrade. https://github.com/rectorphp/rector
comment by mrunkel · 2022-10-13 · in Using a framework will harm the maintenance of your software -
I see many aren't familiar with https://github.com/RectorPHP/Rector . It will help you with a bunch of PHP&frameworks migration work.
comment by mhitza · 2022-05-06 · in PHP RFC: Deprecate ${} string interpolation -
…want to use the extra type support that PHP nowadays has, you can still benefit from it. Tools like https://github.com/RectorPHP/Rector help you automate PHP code updates, and changes between framework versions. Even the linked proposal…
comment by mhitza · 2022-05-06 · in PHP RFC: Deprecate ${} string interpolation -
I opened a PR here: https://github.com/rectorphp/rector/pull/6101
comment by withinboredom · 2021-04-11 · in Show HN: The GraphQL API for WordPress is transpiled from PHP 8.0 to 7.1 -
…also do mass updates from code inspections. Also worth checking out is a package called Rector ( https://github.com/rectorphp/rector ) which will automate a lot of this by scanning the codebase and providing diffs so you can upgrade safely.
comment by rossriley · 2020-10-23 · in PHP 8: Before and After -
…5. Upgrade the code with an AST fixer (might help you update to newer PHP version): https://github.com/rectorphp/rector 6. Add tests to it: https://phpunit.de/ 7. Run mutation tests: https://infection.github.io/ The "0 budget" is rough,…
comment by dkarlovi · 2020-10-23 · in PHP 8: Before and After -
▲ 1
Rector: Instant Upgrades and Instant Refactoring of Any PHP 5.3 Codestory by sandebert · 2019-07-04 · 0 comments