Skip to content

Commit 9ce5e1b

Browse files
committed
Narrow Cors::toArray return type to an array shape
1 parent 5bfbddf commit 9ce5e1b

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

  • src/Illuminate/Routing/Attributes

src/Illuminate/Routing/Attributes/Cors.php

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,14 @@ public function __construct(
2828
/**
2929
* Get the CORS options as an array, excluding null values.
3030
*
31-
* @return array
31+
* @return array{
32+
* origins?: array<string>,
33+
* methods?: array<string>,
34+
* headers?: array<string>,
35+
* exposed_headers?: array<string>,
36+
* max_age?: int,
37+
* credentials?: bool,
38+
* }
3239
*/
3340
public function toArray(): array
3441
{

0 commit comments

Comments
 (0)