-
Hello, I'm very much a beginner with Rector so pardon my ignorance. I have a code that runs on PHP 7.4 but is full of deprecated constructs (for instance Inspired by what I found online, I modified --- composer.json
+++ composer.json
@@ -4,7 +4,7 @@
"mpdf/mpdf": "^5.7.4",
"pear/html_template_it": "^1.3.1",
"pear/image_canvas": "^0.4.0",
- "php": " >= 7, < 8",
+ "php": " >= 7",
"ext-mysqli": "*",
"ext-mbstring": "*",
"ext-gd": "*", and created the <?php
declare(strict_types=1);
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
return RectorConfig::configure()
->withPaths([
# Skipped
])
->withSets([
LevelSetList::UP_TO_PHP_83,
]); Then I tried to convert one file which contain To my surprise, the following rules were applied:
But the What am I doing wrong ? I have noticed that if I change the Thanks in advance ! P.S.: I have found similar discussions but could make sense of them: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Any help? |
Beta Was this translation helpful? Give feedback.
-
I think it's all here: https://getrector.com/documentation/integration-to-new-project |
Beta Was this translation helpful? Give feedback.
I think it's all here:
https://getrector.com/documentation/integration-to-new-project