Update composer dependencies

This commit is contained in:
Kijin Sung 2017-06-29 23:39:23 +09:00
parent 49cc39e507
commit cbd324c35b
428 changed files with 17862 additions and 5885 deletions

8
vendor/rmccue/requests/library/Requests/Exception/HTTP.php vendored Executable file → Normal file
View file

@ -31,7 +31,7 @@ class Requests_Exception_HTTP extends Requests_Exception {
* There is no mechanism to pass in the status code, as this is set by the
* subclass used. Reason phrases can vary, however.
*
* @param string $reason Reason phrase
* @param string|null $reason Reason phrase
* @param mixed $data Associated data
*/
public function __construct($reason = null, $data = null) {
@ -53,10 +53,14 @@ class Requests_Exception_HTTP extends Requests_Exception {
/**
* Get the correct exception class for a given error code
*
* @param int $code HTTP status code
* @param int|bool $code HTTP status code, or false if unavailable
* @return string Exception class name to use
*/
public static function get_class($code) {
if (!$code) {
return 'Requests_Exception_HTTP_Unknown';
}
$class = sprintf('Requests_Exception_HTTP_%d', $code);
if (class_exists($class)) {
return $class;