Skip to content

Commit

Permalink
some methods use real default values instead of nulls (BC break)
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Mar 7, 2022
1 parent 0978b28 commit 9f61234
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Html.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ final public function __call(string $m, array $args): mixed
/**
* Special setter for element's attribute.
*/
final public function href(string $path, ?array $query = null): static
final public function href(string $path, array $query = []): static
{
if ($query) {
$query = http_build_query($query, '', '&');
Expand Down

0 comments on commit 9f61234

Please sign in to comment.