Skip to content

Commit

Permalink
minor #54431 Fix implicit nullable parameters (KerianMM)
Browse files Browse the repository at this point in the history
This PR was merged into the 6.4 branch.

Discussion
----------

Fix implicit nullable parameters

| Q             | A
| ------------- | ---
| Branch?       | 6.4
| Bug fix?      |no
| New feature?  |no
| Deprecations? |no
| License       | MIT

Commits
-------

a308acf Fix implicit nullable parameters
  • Loading branch information
fabpot committed Mar 28, 2024
2 parents 020ef60 + a308acf commit 974be71
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -7,7 +7,7 @@
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
class ExtendedRoute extends Route
{
public function __construct(array|string $path = null, ?string $name = null, array $defaults = [])
public function __construct(array|string|null $path = null, ?string $name = null, array $defaults = [])
{
parent::__construct("/{section<(foo|bar|baz)>}" . $path, $name, [], [], array_merge(['section' => 'foo'], $defaults));
}
Expand Down

0 comments on commit 974be71

Please sign in to comment.