Replies: 2 comments
-
The It protects your project from breakign changes that work only on PHP 8.2 and higher. You can change your PHP version in |
Beta Was this translation helpful? Give feedback.
0 replies
-
Ahhh, so I need to change the version of the composer json to the target version i'm testing for, and yes, that works. I thought I had to specify the tests to run in the rector config. Thanks for the quick reply 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been tasked with the laborious task of verifying our codebase and found Rector which looks like it will be a great tool for helping this process along.
So, I tried installing it, running it and fiddling a bit with the config, but got some unexpected results, so I tried just making a simple test project to see how Rector runs, and i'm not sure if i've done something completely wrong (most probable), or Rector just doesn't work.
The only file i've included in the project is this
composer.json is requiring php 8.1, Rector is set to run with
->withPhpSets(php82: true)
, and when I runlist-rules
, the following rule is includedRector\Php82\Rector\FuncCall\Utf8DecodeEncodeToMbConvertEncodingRector
BUT, when I run Rector, this is what I get:
I would expect this rule to trigger, and it doesn't, and I don't understand why.
Beta Was this translation helpful? Give feedback.
All reactions