Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ImageProxy #201

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Update ImageProxy #201

merged 1 commit into from
Feb 29, 2024

Conversation

Alkarex
Copy link
Member

@Alkarex Alkarex commented Jan 15, 2024

Partial follow-up of #185 (comment)
Fix regression in typing for getSrcSetUris()

Partial follow-up of #185 (comment)
Fix regression in typing for `getSrcSetUris`()
public static function getSrcSetUris(array $matches): array {
$result = str_replace($matches[1], self::getProxyImageUri($matches[1]), $matches[0]);
return is_array($result) ? $result : [$result];
public static function getSrcSetUris(array $matches): string {
return str_replace($matches[1], self::getProxyImageUri($matches[1]), $matches[0]);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Regression fixed here

@Alkarex
Copy link
Member Author

Alkarex commented Jan 15, 2024

Will be continued with #202

@Frenzie
Copy link
Member

Frenzie commented Jan 15, 2024

Is this a fix for #200 (comment) or is that unrelated?

@Alkarex
Copy link
Member Author

Alkarex commented Jan 15, 2024

Is this a fix for #200 (comment) or is that unrelated?

Unrelated but good to apply before

@Alkarex Alkarex merged commit 265fd0b into master Feb 29, 2024
1 check passed
@Alkarex Alkarex deleted the update-imageproxy branch February 29, 2024 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants