Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4490d5a

Browse files
authored
fix deprecations with nullable func args in php 8.4 (#477)
1 parent b28e030 commit 4490d5a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎src/Traits/BuilderCaching.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function withoutGlobalScope($scope)
3131
return parent::withoutGlobalScope($scope);
3232
}
3333

34-
public function withoutGlobalScopes(array $scopes = null)
34+
public function withoutGlobalScopes(?array $scopes = null)
3535
{
3636
if ($scopes !== null) {
3737
$this->withoutGlobalScopes = $scopes;

‎src/Traits/ModelCaching.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ public function scopeDisableCache(EloquentBuilder $query) : EloquentBuilder
160160

161161
public function scopeWithCacheCooldownSeconds(
162162
EloquentBuilder $query,
163-
int $seconds = null
163+
?int $seconds = null
164164
) : EloquentBuilder {
165165
if (! $seconds) {
166166
$seconds = $this->cacheCooldownSeconds;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /