-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update rector.php #560
Conversation
You can pin to phpstan 1.9.2 or use rector dev-main that already include phpstan 1.9.3 |
@samsonasik Do you know why this error happens?
https://github.com/codeigniter4/shield/actions/runs/3692658459/jobs/6251768963 |
You can pin to phpstan 1.9.2 or use rector dev-main that already include phpstan 1.9.3 |
@samsonasik Thanks! No errors with |
@samsonasik Will this be fixed in the next release? |
Yes, wait for next release seems ok 👍 , the error usually happen when phpstan add new parameters config |
@kenjis Rector 0.15.1 released, I restarted the build. |
@kenjis the workflow seems still using rector 0.13
shield/.github/workflows/rector.yml Line 66 in eeebfc8
Please update to |
From CodeIgniter4 repository.
rector.php
Outdated
$rectorConfig | ||
->ruleWithConfiguration(TypedPropertyFromAssignsRector::class, [ | ||
// Set to false if you use in libraries, or it does create breaking changes. | ||
TypedPropertyFromAssignsRector::INLINE_PUBLIC => false, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It false by default, no need to define in config for false value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It comes from a template file in devkit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For devkit, that can be on purpose so user know when to enable it, I think it can be removed in here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I followed the instruction in the devkit template.
If we need to remove the default value, please update the devkit comment.
Otherwise, the code will revert again when I or someone else copy the devkit template to update in the future.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I created PR codeigniter4/devkit#61 for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the config line.
Why did the coverage rate drop to 69.743%? It is 94.95% in my local environment.
|
No clue! |
It is included in LevelSetList::UP_TO_PHP_74.
declare(strict_types=1)
inrector.php
^0.15.1
TypedPropertyRector
.php-cs-fixer.dist.php
https://github.com/codeigniter4/shield/actions/runs/3692642168/jobs/6251736949