Skip to content

Commit 053cad0

Browse files
committed
[7.x] Add missing throws docblocks
1 parent 656d0af commit 053cad0

File tree

9 files changed

+22
-0
lines changed

9 files changed

+22
-0
lines changed

src/Illuminate/Cache/DynamoDbStore.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ public function putMany(array $values, $seconds)
253253
* @param mixed $value
254254
* @param int $seconds
255255
* @return bool
256+
*
257+
* @throws \Aws\DynamoDb\Exception\DynamoDbException
256258
*/
257259
public function add($key, $value, $seconds)
258260
{
@@ -298,6 +300,8 @@ public function add($key, $value, $seconds)
298300
* @param string $key
299301
* @param mixed $value
300302
* @return int|bool
303+
*
304+
* @throws \Aws\DynamoDb\Exception\DynamoDbException
301305
*/
302306
public function increment($key, $value = 1)
303307
{
@@ -343,6 +347,8 @@ public function increment($key, $value = 1)
343347
* @param string $key
344348
* @param mixed $value
345349
* @return int|bool
350+
*
351+
* @throws \Aws\DynamoDb\Exception\DynamoDbException
346352
*/
347353
public function decrement($key, $value = 1)
348354
{

src/Illuminate/Database/Connectors/ConnectionFactory.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ protected function createPdoResolver(array $config)
171171
*
172172
* @param array $config
173173
* @return \Closure
174+
*
175+
* @throws \PDOException
174176
*/
175177
protected function createPdoResolverWithHosts(array $config)
176178
{

src/Illuminate/Foundation/Providers/FoundationServiceProvider.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ public function register()
4949
* Register the "validate" macro on the request.
5050
*
5151
* @return void
52+
*
53+
* @throws \Illuminate\Validation\ValidationException
5254
*/
5355
public function registerRequestValidation()
5456
{

src/Illuminate/Foundation/Testing/TestCase.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ protected function setUpTraits()
142142
* Clean up the testing environment before the next test.
143143
*
144144
* @return void
145+
*
146+
* @throws \Mockery\Exception\InvalidCountException
145147
*/
146148
protected function tearDown(): void
147149
{

src/Illuminate/Queue/Worker.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -416,6 +416,8 @@ protected function handleJobException($connectionName, $job, WorkerOptions $opti
416416
* @param \Illuminate\Contracts\Queue\Job $job
417417
* @param int $maxTries
418418
* @return void
419+
*
420+
* @throws \Throwable
419421
*/
420422
protected function markJobAsFailedIfAlreadyExceedsMaxAttempts($connectionName, $job, $maxTries)
421423
{

src/Illuminate/Redis/Connections/PhpRedisConnection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -513,6 +513,8 @@ public function executeRaw(array $parameters)
513513
* @param string $method
514514
* @param array $parameters
515515
* @return mixed
516+
*
517+
* @throws \RedisException
516518
*/
517519
public function command($method, array $parameters = [])
518520
{

src/Illuminate/Testing/PendingCommand.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ public function execute()
158158
* Execute the command.
159159
*
160160
* @return int
161+
*
162+
* @throws \Mockery\Exception\NoMatchingExpectationException
161163
*/
162164
public function run()
163165
{

src/Illuminate/Testing/TestResponse.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -810,6 +810,8 @@ public function assertJsonMissingValidationErrors($keys = null, $responseKey = '
810810
*
811811
* @param string|null $key
812812
* @return mixed
813+
*
814+
* @throws \Throwable
813815
*/
814816
public function decodeResponseJson($key = null)
815817
{

tests/Foundation/FoundationFormRequestTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,8 @@ public function test_after_validation_runs_after_validation()
121121
* @param string $class
122122
* @param \Closure $excecutor
123123
* @return \Exception
124+
*
125+
* @throws \Exception
124126
*/
125127
protected function catchException($class, $excecutor)
126128
{

0 commit comments

Comments
 (0)