Skip to content
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

Removed call to deprecated format_size() #164

Open
wants to merge 2 commits into
base: 2.x
Choose a base branch
from

Conversation

rupertj
Copy link
Member

@rupertj rupertj commented Jan 5, 2024

Replaced with Drupal\Core\StringTranslation\ByteSizeMarkup::create() as per https://www.drupal.org/node/2999981.

Fixes #163.

@andybroomfield
Copy link
Contributor

As noted on the issue ByteSizeMarkup class was introduced in Drupal 10.2 so we would need to hold on this until we can set 10.2 as the minimum supported version (when 10.3 is released).

@finnlewis
Copy link
Member

Looking at 17th June 2024 for 10.3.0 to be released and 10.1.x to end security support.

@stephen-cox
Copy link
Member

@ekes points out that it's possible to check the version of Drupal can call different functions depending on the version. Should be useful in this case.

See https://mglaman.dev/blog/writing-backward-compatible-deprecation-fixes-contributed-modules-will-be-much-easier-drupal

@finnlewis
Copy link
Member

Some merge conflict to be resolved.

After that, what shall we do with this @rupertj ? Hang tight like @andybroomfield suggests or write something to check the version like @stephen-cox mentions?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Deprecation error in CI
4 participants