Skip to content

Commit fb30338

Browse files
Mark typed parameters that default to null as nullable to ensure PHP 8.4 compatibility
Remove duplicate null in docstring
1 parent 1f5c1e5 commit fb30338

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Common/BaseTableRowItem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ abstract class BaseTableRowItem extends BaseHtmlElement
2929
* @param object $item
3030
* @param BaseItemTable|null $table
3131
*/
32-
public function __construct($item, BaseItemTable $table = null)
32+
public function __construct($item, ?BaseItemTable $table = null)
3333
{
3434
$this->item = $item;
3535
$this->table = $table;

src/Common/StateBadges.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function setUrl(Url $url): self
109109
*
110110
* @return Link
111111
*/
112-
public function createLink($content, array $filter = null): Link
112+
public function createLink($content, ?array $filter = null): Link
113113
{
114114
$url = clone $this->getUrl();
115115

0 commit comments

Comments
 (0)