-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Update Client.php #26508
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 Client.php #26508
Conversation
Docblock
- Docblock - Coding standard from Fabbot
@@ -365,7 +365,7 @@ protected function doRequestInProcess($request) | |||
unlink($deprecationsFile); | |||
foreach ($deprecations ? unserialize($deprecations) : array() as $deprecation) { | |||
if ($deprecation[0]) { | |||
trigger_error($deprecation[1], E_USER_DEPRECATED); | |||
@trigger_error($deprecation[1], E_USER_DEPRECATED); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one should be reverted
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reverted it (your fabbot was asking to add the @
)
@@ -606,6 +606,14 @@ protected function requestFromRequest(Request $request, $changeHistory = true) | |||
return $this->request($request->getMethod(), $request->getUri(), $request->getParameters(), $request->getFiles(), $request->getServer(), $request->getContent(), $changeHistory); | |||
} | |||
|
|||
/** | |||
* Update the server setting from the given URI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, that's a private method, we don't document private method except when really needed. So, this docblock and the next should be removed.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't notice! Sorry. I reverted.
@@ -616,6 +624,13 @@ private function updateServerFromUri($server, $uri) | |||
return $server; | |||
} | |||
|
|||
/** | |||
* Extract host value from the URI. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extracts
Revert unnecessary changes
Thank you @jrean. |
Docblock.