Skip to content

uri: Improve exceptions for Uri\WhatWg\Url #18855

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

TimWolla
Copy link
Member

No description provided.

zend_throw_exception_object(&exception);
}

static void throw_invalid_url_exception_during_write(zval *errors)
Copy link
Member

Choose a reason for hiding this comment

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

Why did you get rid of this function? It seems useful 🤔 especially now that 3 lines are copy-pasted 8 times

Copy link
Member Author

Choose a reason for hiding this comment

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

When using a different message for each component I felt that just copying the code was easier than trying to pass along the error message correctly to the helper function (especially when needing additional component-specific placeholders, I initially included the broken value in the message itself).

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