Skip to content

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

Diff for: src/Traits/BuilderCaching.php

+1-1
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;

Diff for: src/Traits/ModelCaching.php

+1-1
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)