Open hikari-no-yume opened 8 years ago
I'm not entirely sure what this means. Can you explain further?
-iB isn't a suffix, the 'i' is part of the prefix. You wouldn't have 1000iB, you'd have 1000B.
The term suffix is used here to mean the unit is suffixed to the value. i.e. the value is the prefix and the units are the suffix.
The issue is with the distinction between prefix and suffix as defined in SymbolDecorator
.
The IEC prefixes are Ki, Mi, Gi, etc. so the i belongs with the prefix, not the suffix.
As pointed out on reddit: https://www.reddit.com/r/PHP/comments/3yq3yx/byteformatter_is_a_psr2_compliant_library_that/cygfps8