Skip to content

Commit

Permalink
[7.x] Fixed throws doc (#34138)
Browse files Browse the repository at this point in the history
* Revert "Fix `@throws` in PHPDoc to use Throwable. (#33888)"

This reverts commit bec8a46.

* This change was goo

* Update Handler.php

* Update ExceptionHandler.php
  • Loading branch information
GrahamCampbell committed Sep 4, 2020
1 parent 9fd56d7 commit 05b785d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Contracts/Debug/ExceptionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ interface ExceptionHandler
* @param \Throwable $e
* @return void
*
* @throws \Exception
* @throws \Throwable
*/
public function report(Throwable $e);

Expand Down
4 changes: 2 additions & 2 deletions src/Illuminate/Database/Connectors/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Connector
* @param array $options
* @return \PDO
*
* @throws \Throwable
* @throws \Exception
*/
public function createConnection($dsn, array $config, array $options)
{
Expand Down Expand Up @@ -92,7 +92,7 @@ protected function isPersistentConnection($options)
* @param array $options
* @return \PDO
*
* @throws \Throwable
* @throws \Exception
*/
protected function tryAgainIfCausedByLostConnection(Throwable $e, $dsn, $username, $password, $options)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Illuminate/Http/Client/PendingRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ public function delete($url, $data = [])
* @param array $options
* @return \Illuminate\Http\Client\Response
*
* @throws \Throwable
* @throws \Exception
*/
public function send(string $method, string $url, array $options = [])
{
Expand Down

0 comments on commit 05b785d

Please sign in to comment.