Skip to content

Commit 05b785d

Browse files
[7.x] Fixed throws doc (#34138)
* Revert "Fix `@throws` in PHPDoc to use Throwable. (#33888)" This reverts commit bec8a46. * This change was goo * Update Handler.php * Update ExceptionHandler.php
1 parent 9fd56d7 commit 05b785d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/Illuminate/Contracts/Debug/ExceptionHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ interface ExceptionHandler
1212
* @param \Throwable $e
1313
* @return void
1414
*
15-
* @throws \Exception
15+
* @throws \Throwable
1616
*/
1717
public function report(Throwable $e);
1818

src/Illuminate/Database/Connectors/Connector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Connector
3333
* @param array $options
3434
* @return \PDO
3535
*
36-
* @throws \Throwable
36+
* @throws \Exception
3737
*/
3838
public function createConnection($dsn, array $config, array $options)
3939
{
@@ -92,7 +92,7 @@ protected function isPersistentConnection($options)
9292
* @param array $options
9393
* @return \PDO
9494
*
95-
* @throws \Throwable
95+
* @throws \Exception
9696
*/
9797
protected function tryAgainIfCausedByLostConnection(Throwable $e, $dsn, $username, $password, $options)
9898
{

src/Illuminate/Http/Client/PendingRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ public function delete($url, $data = [])
525525
* @param array $options
526526
* @return \Illuminate\Http\Client\Response
527527
*
528-
* @throws \Throwable
528+
* @throws \Exception
529529
*/
530530
public function send(string $method, string $url, array $options = [])
531531
{

0 commit comments

Comments
 (0)