Skip to content

Commit e73478a

Browse files
committed
Merge branch '10.x' of github.com:laravel/framework into 10.x
2 parents cc3f090 + 69b2f9f commit e73478a

File tree

11 files changed

+27
-12
lines changed

11 files changed

+27
-12
lines changed

src/Illuminate/Auth/Middleware/RequirePassword.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function __construct(ResponseFactory $responseFactory, UrlGenerator $urlG
4848
* Specify the redirect route and timeout for the middleware.
4949
*
5050
* @param string|null $redirectToRoute
51-
* @param string|null $passwordTimeoutSeconds
51+
* @param string|int|null $passwordTimeoutSeconds
5252
* @return string
5353
*
5454
* @named-arguments-supported

src/Illuminate/Cache/FileStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,7 @@ protected function emptyPayload()
338338
* @param string $key
339339
* @return string
340340
*/
341-
protected function path($key)
341+
public function path($key)
342342
{
343343
$parts = array_slice(str_split($hash = sha1($key), 2), 0, 2);
344344

src/Illuminate/Collections/Collection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ public function except($keys)
374374
/**
375375
* Run a filter over each of the items.
376376
*
377-
* @param (callable(TValue, TKey): bool)|null $callback
377+
* @param (callable(TValue, TKey): bool)|null $callback
378378
* @return static
379379
*/
380380
public function filter(callable $callback = null)

src/Illuminate/Database/DetectsLostConnections.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,9 @@ protected function causedByLostConnection(Throwable $e)
6262
'SSL: Operation timed out',
6363
'Reason: Server is in script upgrade mode. Only administrator can connect at this time.',
6464
'Unknown $curl_error_code: 77',
65+
'SSL: Handshake timed out',
66+
'SQLSTATE[08006] [7] SSL error: sslv3 alert unexpected message',
67+
'SQLSTATE[08006] [7] unrecognized SSL error code:',
6568
]);
6669
}
6770
}

src/Illuminate/Database/Eloquent/Collection.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ protected function loadMissingRelation(self $models, array $path)
253253
* Load a set of relationships onto the mixed relationship collection.
254254
*
255255
* @param string $relation
256-
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string> $relations
256+
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string> $relations
257257
* @return $this
258258
*/
259259
public function loadMorph($relation, $relations)
@@ -270,7 +270,7 @@ public function loadMorph($relation, $relations)
270270
* Load a set of relationship counts onto the mixed relationship collection.
271271
*
272272
* @param string $relation
273-
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string> $relations
273+
* @param array<array-key, (callable(\Illuminate\Database\Eloquent\Builder): mixed)|string> $relations
274274
* @return $this
275275
*/
276276
public function loadMorphCount($relation, $relations)

src/Illuminate/Foundation/Http/Middleware/HandlePrecognitiveRequests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ protected function prepareForPrecognition($request)
6969
*
7070
* @param \Illuminate\Http\Request $request
7171
* @param \Illuminate\Http\Response $response
72-
* @return \Illuminate\Http\Response $response
72+
* @return \Illuminate\Http\Response
7373
*/
7474
protected function appendVaryHeader($request, $response)
7575
{

src/Illuminate/Routing/Controllers/Middleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function only(array|string $only)
5555
/**
5656
* Specify the controller methods the middleware should not apply to.
5757
*
58-
* @param array|string $only
58+
* @param array|string $except
5959
* @return $this
6060
*/
6161
public function except(array|string $except)

src/Illuminate/Routing/Middleware/ThrottleRequests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ protected function resolveRequestSignature($request)
215215
* @param string $key
216216
* @param int $maxAttempts
217217
* @param callable|null $responseCallback
218-
* @return \Illuminate\Http\Exceptions\ThrottleRequestsException
218+
* @return \Illuminate\Http\Exceptions\ThrottleRequestsException|\Illuminate\Http\Exceptions\HttpResponseException
219219
*/
220220
protected function buildException($request, $key, $maxAttempts, $responseCallback = null)
221221
{

src/Illuminate/Support/Sleep.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ protected function shouldNotSleep()
427427
/**
428428
* Only sleep when the given condition is true.
429429
*
430-
* @param (\Closure($this): bool)|bool $condition
430+
* @param (\Closure($this): bool)|bool $condition
431431
* @return $this
432432
*/
433433
public function when($condition)
@@ -440,7 +440,7 @@ public function when($condition)
440440
/**
441441
* Don't sleep when the given condition is true.
442442
*
443-
* @param (\Closure($this): bool)|bool $condition
443+
* @param (\Closure($this): bool)|bool $condition
444444
* @return $this
445445
*/
446446
public function unless($condition)

src/Illuminate/Testing/TestResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -894,7 +894,7 @@ public function assertJsonMissingValidationErrors($keys = null, $responseKey = '
894894
/**
895895
* Assert that the given key is a JSON array.
896896
*
897-
* @param $key
897+
* @param string|null $key
898898
* @return $this
899899
*/
900900
public function assertJsonIsArray($key = null)
@@ -915,7 +915,7 @@ public function assertJsonIsArray($key = null)
915915
/**
916916
* Assert that the given key is a JSON object.
917917
*
918-
* @param $key
918+
* @param string|null $key
919919
* @return $this
920920
*/
921921
public function assertJsonIsObject($key = null)

0 commit comments

Comments
 (0)