Skip to content

Update the documentation of Number::toReadableSize() to new specifications#8227

Merged
markstory merged 5 commits into
cakephp:5.nextfrom
j04chim:5.next
Feb 21, 2026
Merged

Update the documentation of Number::toReadableSize() to new specifications#8227
markstory merged 5 commits into
cakephp:5.nextfrom
j04chim:5.next

Conversation

@j04chim

@j04chim j04chim commented Feb 9, 2026

Copy link
Copy Markdown
Contributor

Here are my proposed updates to the documentation for Number::toReadableSize(). I did not modify the Japanese version.

Comment thread docs/en/core-libraries/number.md

@josbeir josbeir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you also note this change in the migration guide ?

https://github.com/cakephp/docs/blob/5.next/docs/en/appendices/5-4-migration-guide.md


## Breaking Changes

- `Number::toReadableSize()` now calculates decimal units (KB, MB, GB and TB)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought we added the new way as BC flag. To opt in.

@josbeir

josbeir commented Feb 16, 2026

Copy link
Copy Markdown
Contributor

ping @j04chim

@markstory markstory merged commit e745a35 into cakephp:5.next Feb 21, 2026
5 checks passed
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.

4 participants