Skip to content

Commit

Permalink
Merge pull request #336 from kmucavele/make-route-annotation-paramete…
Browse files Browse the repository at this point in the history
…rs-default-to-array

Make route annotation parameters default to array
  • Loading branch information
goetas authored Nov 9, 2024
2 parents b2a3b1e + c1f6246 commit 4cb096e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Configuration/Annotation/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ class Route
* @param array|string $parameters
* @param bool|string $absolute
*/
public function __construct($values = [], ?string $name = null, $parameters = null, $absolute = false, ?string $generator = null)
public function __construct($values = [], ?string $name = null, $parameters = [], $absolute = false, ?string $generator = null)
{
$this->loadAnnotationParameters(get_defined_vars());
}
Expand Down

0 comments on commit 4cb096e

Please sign in to comment.