We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b28e030 commit 4490d5aCopy full SHA for 4490d5a
src/Traits/BuilderCaching.php
@@ -31,7 +31,7 @@ public function withoutGlobalScope($scope)
31
return parent::withoutGlobalScope($scope);
32
}
33
34
- public function withoutGlobalScopes(array $scopes = null)
+ public function withoutGlobalScopes(?array $scopes = null)
35
{
36
if ($scopes !== null) {
37
$this->withoutGlobalScopes = $scopes;
src/Traits/ModelCaching.php
@@ -160,7 +160,7 @@ public function scopeDisableCache(EloquentBuilder $query) : EloquentBuilder
160
161
public function scopeWithCacheCooldownSeconds(
162
EloquentBuilder $query,
163
- int $seconds = null
+ ?int $seconds = null
164
) : EloquentBuilder {
165
if (! $seconds) {
166
$seconds = $this->cacheCooldownSeconds;
0 commit comments