Skip to content

Commit a6ce2a7

Browse files
authored
Add missing @throws \JsonException annotations (#60514)
1 parent f63411b commit a6ce2a7

7 files changed

Lines changed: 13 additions & 0 deletions

File tree

src/Illuminate/Foundation/Cloud.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,8 @@ public static function ensureMigrationsUseUnpooledConnection(Application $app):
132132

133133
/**
134134
* Configure managed queues if applicable.
135+
*
136+
* @throws \JsonException
135137
*/
136138
public static function configureManagedQueues(Application $app): void
137139
{

src/Illuminate/Foundation/Cloud/Events.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ protected function write(string $payload): void
9999
* Format the payload.
100100
*
101101
* @param list<array<string, mixed>> $payloads
102+
*
103+
* @throws \JsonException
102104
*/
103105
protected function format(array $payloads): string
104106
{

src/Illuminate/Foundation/Cloud/FailedJobProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ public function all()
103103
*
104104
* @param mixed $id
105105
* @return object|null
106+
*
107+
* @throws \JsonException
106108
*/
107109
public function find($id)
108110
{

src/Illuminate/Queue/Events/JobQueued.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ public function __construct(
2828
* Get the decoded job payload.
2929
*
3030
* @return array
31+
*
32+
* @throws \JsonException
3133
*/
3234
public function payload()
3335
{

src/Illuminate/Queue/Events/JobQueueing.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ public function __construct(
2626
* Get the decoded job payload.
2727
*
2828
* @return array
29+
*
30+
* @throws \JsonException
2931
*/
3032
public function payload()
3133
{

src/Illuminate/Support/Composer.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ public function removePackages(array $packages, bool $dev = false, Closure|Outpu
116116
* @param callable(array<string, mixed>):array<string, mixed> $callback
117117
* @return void
118118
*
119+
* @throws \JsonException
119120
* @throws \RuntimeException
120121
*/
121122
public function modify(callable $callback)

src/Illuminate/Testing/TestResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1748,6 +1748,8 @@ public function assertSessionDoesntHaveErrors($keys = [], $format = null, $error
17481748
* Assert that the session has no errors.
17491749
*
17501750
* @return $this
1751+
*
1752+
* @throws \JsonException
17511753
*/
17521754
public function assertSessionHasNoErrors()
17531755
{

0 commit comments

Comments
 (0)