Skip to content

Commit

Permalink
Fix php8.4 Deprecations
Browse files Browse the repository at this point in the history
  • Loading branch information
alloylab committed Jan 4, 2025
1 parent cca4591 commit c25d879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Column.php
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ public function visibleInExport(?bool $visible): Column
public function editOnClick(
bool $hasPermission = true,
string $dataField = '',
string $fallback = null,
string|null $fallback = null,
bool $saveOnMouseOut = false
): Column {
$this->editable = [
Expand Down
4 changes: 2 additions & 2 deletions src/Providers/Macros.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static function columns(): void
return $this;
});

Column::macro('naturalSort', function (bool $when = false, string $tableName = null) {
Column::macro('naturalSort', function (bool $when = false, string|null $tableName = null) {
$this->enableSort();

if ($when) {
Expand Down Expand Up @@ -208,7 +208,7 @@ public static function actions(): void
return $this;
});

Button::macro('id', function (string $id = null) {
Button::macro('id', function (string|null $id = null) {
$this->attributes([
'id' => $id,
]);
Expand Down

0 comments on commit c25d879

Please sign in to comment.