Skip to content

Commit 852c0ec

Browse files
authored
Fixed: deprecated message when using php 8.4. Closes #62 (#65)
* Fixed: deprecated message when using php 8.4 * Fixed: deprecated message when using php 8.4
1 parent 35b2f21 commit 852c0ec

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/LaravelDraftsServiceProvider.php

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ public function packageRegistered()
3333
$this->app[Kernel::class]->prependToMiddlewarePriority(WithDraftsMiddleware::class);
3434

3535
Blueprint::macro('drafts', function (
36-
string $uuid = null,
37-
string $publishedAt = null,
38-
string $isPublished = null,
39-
string $isCurrent = null,
40-
string $publisherMorphName = null,
36+
?string $uuid = null,
37+
?string $publishedAt = null,
38+
?string $isPublished = null,
39+
?string $isCurrent = null,
40+
?string $publisherMorphName = null,
4141
) {
4242
/** @var Blueprint $this */
4343
$uuid ??= config('drafts.column_names.uuid', 'uuid');
@@ -56,11 +56,11 @@ public function packageRegistered()
5656
});
5757

5858
Blueprint::macro('dropDrafts', function (
59-
string $uuid = null,
60-
string $publishedAt = null,
61-
string $isPublished = null,
62-
string $isCurrent = null,
63-
string $publisherMorphName = null,
59+
?string $uuid = null,
60+
?string $publishedAt = null,
61+
?string $isPublished = null,
62+
?string $isCurrent = null,
63+
?string $publisherMorphName = null,
6464
) {
6565
/** @var Blueprint $this */
6666
$uuid ??= config('drafts.column_names.uuid', 'uuid');

0 commit comments

Comments
 (0)