Closed avenjamin closed 1 month ago
Thank you for the PR and the suggestions @juse-less. To be honest, I don't think Saloon should support casting strings like this, if I were to implement the PR, I would have to add it everywhere to keep it consistent.
This PR adds
|Stringable
to theset
methods in the OAuthConfig class that accept a string parameter.In my use case, I'm constructing URLs using the spatie/url package and would like to be able to pass the URL directly to the
setAuthorizeEndpoint()
method:The
Url
implements theStringable
__toString()
method so I can either cast to a string or update Saloon to supportStringable
parameters :smile: