Skip to content

Commit

Permalink
Update reference-component.txt
Browse files Browse the repository at this point in the history
array might be null
  • Loading branch information
bnomei authored and bastianallgeier committed Jul 17, 2023
1 parent 3863179 commit 47822a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Text:
```php "/site/plugins/urls/index.php"
Kirby::plugin('my/urls', [
'components' => [
'url' => function (Kirby $kirby, string $path, array $options = []): string {
'url' => function (Kirby $kirby, string $path, ?array $options = []): string {
$original = $kirby->nativeComponent('url');
return $original($kirby, $path, $options);
}
Expand Down

0 comments on commit 47822a9

Please sign in to comment.