Skip to content

Commit 3ff54cf

Browse files
authored
fix: implicit null deprecations
1 parent 1c05b15 commit 3ff54cf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Database/Query/CacheableQueryBuilder.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,10 +175,10 @@ protected function runSelect()
175175
/**
176176
* Check if to cache against just the class or a specific identifiable e.g. id
177177
*
178-
* @param mixed $value
178+
* @param mixed|null $value
179179
* @return string[]
180180
*/
181-
protected function getIdentifiableModelClasses($value = null): array
181+
protected function getIdentifiableModelClasses(mixed $value = null): array
182182
{
183183
$retVals = [$this->modelClass];
184184
if ($value) {
@@ -225,7 +225,7 @@ protected function getIdentifiableValue(?array $wheres = null): mixed
225225
* @param array|null $wheres
226226
* @return bool
227227
*/
228-
protected function isIdentifiableQuery(array $wheres = null): bool
228+
protected function isIdentifiableQuery(?array $wheres = null): bool
229229
{
230230
return $this->getIdentifiableValue($wheres) !== null;
231231
}

0 commit comments

Comments
 (0)