Repository navigation
Update to construct URLs without dependency on rize/uri-template - #106
Merged
Merged
Conversation
clue
force-pushed
the
remove-uri-templates
branch
from
October 18, 2026 11:37
293f81f to
1ad9160
Compare
rize/uri-templaterize/uri-template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This changeset updates the client to construct its request URLs without the dependency on
rize/uri-template. It now uses plainrawurlencode()calls, so consumers of this package no longer install the extra package. The dependency was added with #23 back in 2015 and needed updates for each new PHP version since, see #88, #93 and #94.The second commit replaces the internal
boolArg()helper with inline conditionals, so each endpoint shows the exact value it sends.All requests stay exactly the same, so this should be safe to apply. Arguments of invalid types may now be rejected with a
TypeErrorinstead of silently sending an invalid request.Builds on top of #94, #93, #88 and #23
Refs rize/UriTemplate#29