Page MenuHomeDevCentral

Refactor URL encode/decode
Needs ReviewPublic

Authored by dereckson on Apr 18 2026, 13:00.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Sep 12, 17:01
Unknown Object (File)
Sat, Sep 12, 17:00
Unknown Object (File)
Sat, Sep 12, 10:53
Unknown Object (File)
Fri, Sep 11, 22:02
Unknown Object (File)
Fri, Sep 11, 15:15
Unknown Object (File)
Fri, Sep 11, 15:15
Unknown Object (File)
Fri, Sep 11, 15:15
Unknown Object (File)
Fri, Sep 11, 15:15
Subscribers

Details

Reviewers
Duranzed

Diff Detail

Repository
rKERUALD Keruald libraries development repository
Lint
Lint Passed
Unit
Tests Passed
Branch
follow-up-for-doc-iii
Build Status
Buildable 6867
Build 7155: arc lint + arc unit

Event Timeline

dereckson created this revision.
Duranzed requested changes to this revision.May 18 2026, 23:15
Duranzed added a subscriber: Duranzed.

Harbormaster reports unit test failures on omnitools/tests/HTTP/URLTest.php, also the exception message changed in beautifyQuery() from "Unexpected encoding value" to "Unexpected value", while normalizeQuery() keeps "Unexpected encoding value".

This revision now requires changes to proceed.May 18 2026, 23:15

Restore full exception message

Move constantes to a backed enum, so we can get autocomplete from IDEs
and exhaustive matching.

_toString() -> (string) cast

Exception can be removed using an PHP 8.1 enum instead of in-class constants.