Skip to content

Commit bec8a46

Browse files
authored
Fix @throws in PHPDoc to use Throwable. (#33888)
Co-authored-by: Leo <[email protected]>
1 parent b1f9fc5 commit bec8a46

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

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 \Exception
36+
* @throws \Throwable
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 \Exception
95+
* @throws \Throwable
9696
*/
9797
protected function tryAgainIfCausedByLostConnection(Throwable $e, $dsn, $username, $password, $options)
9898
{

src/Illuminate/Foundation/Exceptions/Handler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function __construct(Container $container)
9494
* @param \Throwable $e
9595
* @return void
9696
*
97-
* @throws \Exception
97+
* @throws \Throwable
9898
*/
9999
public function report(Throwable $e)
100100
{

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 \Exception
528+
* @throws \Throwable
529529
*/
530530
public function send(string $method, string $url, array $options = [])
531531
{

src/Illuminate/Queue/SyncQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ protected function raiseExceptionOccurredJobEvent(Job $job, Throwable $e)
109109
* @param \Throwable $e
110110
* @return void
111111
*
112-
* @throws \Exception
112+
* @throws \Throwable
113113
*/
114114
protected function handleException(Job $queueJob, Throwable $e)
115115
{

0 commit comments

Comments
 (0)