Skip to content

Commit 23b327d

Browse files
Better documentation for the __construct in Middleware (#56021)
1 parent 61e2a09 commit 23b327d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Illuminate/Routing/Controllers/Middleware.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ class Middleware
1111
* Create a new controller middleware definition.
1212
*
1313
* @param \Closure|string|array $middleware
14+
* @param array<string>|null $only
15+
* @param array<string>|null $except
1416
*/
1517
public function __construct(public Closure|string|array $middleware, public ?array $only = null, public ?array $except = null)
1618
{

0 commit comments

Comments
 (0)