Skip to content

fix: type url parameter of CloudFront::purge() - #15

Merged
Jean-Beru merged 1 commit into
mainfrom
fix/purge-url-type
Oct 15, 2026
Merged

Jean-Beru merged 1 commit into
mainfrom
fix/purge-url-type

Conversation

@Jean-Beru

Copy link
Copy Markdown
Owner

Why

CloudFront::purge() declares $url without a type. This was necessary for friendsofsymfony/http-cache 2.x, because its PurgeCapable interface has no parameter type. The library now requires friendsofsymfony/http-cache 3.x, and its interface declares string $url.

What

  • Declare string $url in CloudFront::purge(), as in the PurgeCapable interface of version 3.x.

Example

$proxy->purge('/homepage')->flush();

Callers that already pass a string see no change.

Support for friendsofsymfony/http-cache 2.x is removed. Use the string type from the PurgeCapable interface of version 3.x.
@Jean-Beru
Jean-Beru merged commit 0ed487d into main Oct 15, 2026
12 checks passed
@Jean-Beru
Jean-Beru deleted the fix/purge-url-type branch October 15, 2026 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant