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

Proxy\Http::__construct(): add input validation #611

Merged
merged 1 commit into from
Nov 15, 2021

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Nov 14, 2021

The method already contains input validation, but would not notify the dev-user if no usable input was received.

This commit adds an InvalidArgument exception for that situation.

Includes test.

Includes improving the documentation for the $args parameter.


Regarding the other public methods:

  • The register() method already have a class based type declaration.
  • The curl_before_send(), fsockopen_remote_socket(), fsockopen_remote_host_path() and fsockopen_header() methods are intended to be only called as a Hook callback.
  • The other public methods do not take parameters.

@jrfnl jrfnl added this to the 2.0.0 milestone Nov 14, 2021
@jrfnl jrfnl mentioned this pull request Nov 14, 2021
28 tasks
@jrfnl jrfnl force-pushed the feature/proxy-http-add-input-validation branch 2 times, most recently from 209292a to 3dff0aa Compare November 15, 2021 13:43
The method already contains input validation, but would not notify the dev-user if no usable input was received.

This commit adds an `InvalidArgument` exception for that situation.

Includes test.

Includes improving the documentation for the `$args` parameter.

Includes removing a redundant `@since` tag.
@jrfnl jrfnl force-pushed the feature/proxy-http-add-input-validation branch from 3dff0aa to ad9a9a1 Compare November 15, 2021 13:46
@schlessera schlessera merged commit bc50fe9 into develop Nov 15, 2021
@schlessera schlessera deleted the feature/proxy-http-add-input-validation branch November 15, 2021 13:54
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