| 1 | <?php |
||
| 20 | final class InvalidServerResponse extends \RuntimeException implements Exception |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @param string $query |
||
| 24 | * @param int $code |
||
| 25 | * |
||
| 26 | * @return InvalidServerResponse |
||
|
|
|||
| 27 | */ |
||
| 28 | public static function create(string $query, int $code = 0): self |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @param string $query |
||
| 35 | * |
||
| 36 | * @return InvalidServerResponse |
||
| 37 | */ |
||
| 38 | public static function emptyResponse(string $query): self |
||
| 42 | } |
||
| 43 |
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.