While running Joomla 6.0.2 under PHP 8.5, the following deprecation notice appears:
Deprecated: Non-canonical cast (binary) is deprecated, use the (string) cast instead
in libraries/vendor/algo26-matthias/idna-convert/src/TranscodeUnicode/ByteLengthTrait.php on line 17
This originates from the algo26-matthias/idna-convert dependency bundled in Joomla core.
The upstream library has already merged a fix for this exact problem — the deprecated (binary) cast has been replaced with (string) — in this pull request:
algo26-matthias/idna-convert#59
No deprecated warnings from a core vendor library.
PHP deprecation warning shown due to the (binary) cast.
Update the bundled algo26-matthias/idna-convert to a version that contains the upstream fix (or apply the upstream patch in Joomla core).
| Labels |
Added:
No Code Attached Yet
|
||
I have contacted the lead developer of idna-converter privately and informed them about this. I expect a solution to be found soon. I will leave the issue open so that we can link it to a suitable PR.
Update: I have received a reply. It is on his list and should be done in the next few days.
4.2.1 was released today.
https://github.com/algo26-matthias/idna-convert/releases/tag/v4.2.1
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-01-20 12:05:34 |
| Closed_By | ⇒ | tecpromotion |
Since there are PRs, I am closing this issue.
FYI The upstream fix you refer to was created by a joomla contributor but a new release has not been tagged