-
Notifications
You must be signed in to change notification settings - Fork 74
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
feat: add rector rule for format_size in 10.2 #286
feat: add rector rule for format_size in 10.2 #286
Conversation
I guess the tests are failing because of #285 |
|
||
return static function (RectorConfig $rectorConfig): void { | ||
$rectorConfig->sets([ | ||
SymfonyLevelSetList::UP_TO_SYMFONY_63, |
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.
This one is the same as 10.1, so we dont need this in here.
Small little feedback, otherwise, great work! |
Thanks for the review and the guidance @bbrala, I've resolved your feedback. |
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.
Looking great! Thank you :)
@bbrala
I think the CI needs to be updated to run the check twice to make sure that re-applying the rules on already fixed code does not trigger another need for a fix. UPDATE: created issue in D.O. https://www.drupal.org/project/rector/issues/3414169 |
Yeah, this is not this change though, but the overarching change which supports the bc calls. Added comment tot he issue. My collegue promised to have a look at whats broken, so might be able to fix it pretty soon. |
Description
The
format_size()
function incommon.inc
is deprecated in favour of using\Drupal\Core\StringTranslation\ByteSizeMarkup::create()
that returnsTranslatableMarkup
To Test
Drupal.org issue
https://www.drupal.org/node/3413972