1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 10:03:27 +01:00

Make GuzzleException extend Throwable whereever it's available

This commit is contained in:
Erik Booij 2019-03-07 09:46:39 +01:00
parent 3b0452a3a0
commit fe346ef3c4

View File

@ -1,13 +1,20 @@
<?php <?php
namespace GuzzleHttp\Exception; namespace GuzzleHttp\Exception;
/** use Throwable;
* @method string getMessage()
* @method \Throwable|null getPrevious() if (interface_exists(Throwable::class)) {
* @method mixed getCode() interface GuzzleException extends Throwable {}
* @method string getFile() } else {
* @method int getLine() /**
* @method array getTrace() * @method string getMessage()
* @method string getTraceAsString() * @method \Throwable|null getPrevious()
*/ * @method mixed getCode()
interface GuzzleException {} * @method string getFile()
* @method int getLine()
* @method array getTrace()
* @method string getTraceAsString()
*/
interface GuzzleException {}
}