diff --git a/src/Traits/Helpers/ComponentHelpers.php b/src/Traits/Helpers/ComponentHelpers.php index 3ad1ff1ac..4ad05ee10 100644 --- a/src/Traits/Helpers/ComponentHelpers.php +++ b/src/Traits/Helpers/ComponentHelpers.php @@ -85,7 +85,7 @@ public function getComponentWrapperAttributes(): array } /** - * @return array + * @return array */ public function getTableWrapperAttributes(): array { @@ -93,7 +93,7 @@ public function getTableWrapperAttributes(): array } /** - * @return array + * @return array */ public function getTableAttributes(): array { @@ -101,7 +101,7 @@ public function getTableAttributes(): array } /** - * @return array + * @return array */ public function getTheadAttributes(): array { @@ -109,7 +109,7 @@ public function getTheadAttributes(): array } /** - * @return array + * @return array */ public function getTbodyAttributes(): array { @@ -117,7 +117,7 @@ public function getTbodyAttributes(): array } /** - * @return array + * @return array */ public function getThAttributes(Column $column): array { @@ -125,7 +125,7 @@ public function getThAttributes(Column $column): array } /** - * @return array + * @return array */ public function getThSortButtonAttributes(Column $column): array { diff --git a/src/Views/Column.php b/src/Views/Column.php index 4897fa6a0..e09e81388 100644 --- a/src/Views/Column.php +++ b/src/Views/Column.php @@ -78,7 +78,7 @@ class Column protected ?string $customSlug = null; - public function __construct(string $title, ?string $from = null) + public function __construct(string $title, string $from = null) { $this->title = trim($title); @@ -101,7 +101,7 @@ public function __construct(string $title, ?string $from = null) /** * @return static */ - public static function make(string $title, ?string $from = null): Column + public static function make(string $title, string $from = null): Column { return new static($title, $from); } diff --git a/src/Views/Columns/ButtonGroupColumn.php b/src/Views/Columns/ButtonGroupColumn.php index b32eb655d..2987481b5 100644 --- a/src/Views/Columns/ButtonGroupColumn.php +++ b/src/Views/Columns/ButtonGroupColumn.php @@ -18,7 +18,7 @@ class ButtonGroupColumn extends Column protected $attributesCallback; - public function __construct(string $title, ?string $from = null) + public function __construct(string $title, string $from = null) { parent::__construct($title, $from); diff --git a/src/Views/Columns/ComponentColumn.php b/src/Views/Columns/ComponentColumn.php index 661ad5b07..f46174a0b 100644 --- a/src/Views/Columns/ComponentColumn.php +++ b/src/Views/Columns/ComponentColumn.php @@ -21,7 +21,7 @@ class ComponentColumn extends Column protected $slotCallback; - public function __construct(string $title, ?string $from = null) + public function __construct(string $title, string $from = null) { parent::__construct($title, $from); } diff --git a/src/Views/Columns/ImageColumn.php b/src/Views/Columns/ImageColumn.php index d461c9e50..8a1edc8ef 100644 --- a/src/Views/Columns/ImageColumn.php +++ b/src/Views/Columns/ImageColumn.php @@ -19,7 +19,7 @@ class ImageColumn extends Column protected $attributesCallback; - public function __construct(string $title, ?string $from = null) + public function __construct(string $title, string $from = null) { parent::__construct($title, $from); diff --git a/src/Views/Columns/LinkColumn.php b/src/Views/Columns/LinkColumn.php index 126b52b1c..5dbdea68b 100644 --- a/src/Views/Columns/LinkColumn.php +++ b/src/Views/Columns/LinkColumn.php @@ -21,7 +21,7 @@ class LinkColumn extends Column protected $attributesCallback; - public function __construct(string $title, ?string $from = null) + public function __construct(string $title, string $from = null) { parent::__construct($title, $from); diff --git a/src/Views/Filter.php b/src/Views/Filter.php index 46250159e..2b260a3e3 100644 --- a/src/Views/Filter.php +++ b/src/Views/Filter.php @@ -44,7 +44,7 @@ abstract class Filter protected $filterDefaultValue; - public function __construct(string $name, ?string $key = null) + public function __construct(string $name, string $key = null) { $this->name = $name; @@ -58,7 +58,7 @@ public function __construct(string $name, ?string $key = null) /** * @return static */ - public static function make(string $name, ?string $key = null): Filter + public static function make(string $name, string $key = null): Filter { return new static($name, $key); } diff --git a/src/Views/Traits/Configuration/ColumnConfiguration.php b/src/Views/Traits/Configuration/ColumnConfiguration.php index 2efd5ba11..54d233d36 100644 --- a/src/Views/Traits/Configuration/ColumnConfiguration.php +++ b/src/Views/Traits/Configuration/ColumnConfiguration.php @@ -23,7 +23,7 @@ public function label(callable $callback): self return $this; } - public function sortable(?callable $callback = null): self + public function sortable(callable $callback = null): self { $this->sortable = true; @@ -39,7 +39,7 @@ public function format(callable $callable): Column return $this; } - public function searchable(?callable $callback = null): self + public function searchable(callable $callback = null): self { $this->searchable = true;