Skip to content

Commit f568cb7

Browse files
Fix PHPStan
1 parent 301858e commit f568cb7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

phpstan-baseline.neon

+4
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ parameters:
120120
count: 1
121121
path: src/Support/DataConfig.php
122122

123+
-
124+
message: "#^Call to method Illuminate\\\\Support\\\\Collection\\<\\(int\\|string\\),string\\|null\\>\\:\\:isEmpty\\(\\) will always evaluate to false\\.$#"
125+
count: 1
126+
path: src/Support/Validation/RuleDenormalizer.php
123127

124128
-
125129
message: "#^Call to an undefined method DateTimeInterface\\:\\:setTimezone\\(\\)\\.$#"

src/Support/Caching/DataStructureCache.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class DataStructureCache
1717
public function __construct(
1818
protected array $cacheConfig,
1919
) {
20-
$this->store = cache()->store(($this->cacheConfig['store'] ?? null))?->getStore();
20+
$this->store = cache()->store(($this->cacheConfig['store'] ?? null))->getStore();
2121
$this->prefix = ($this->cacheConfig['prefix'] ?? '') ? "{$this->cacheConfig['prefix']}." : '';
2222
$this->duration = $this->cacheConfig['duration'] ?? null;
2323
}

src/Support/Validation/RuleDenormalizer.php

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ protected function normalizeStringValidationAttribute(
6262
->map(fn (mixed $value) => $this->normalizeRuleParameter($value, $path))
6363
->reject(fn (mixed $value) => $value === null);
6464

65-
6665
if ($parameters->isEmpty()) {
6766
return [$rule->keyword()];
6867
}

0 commit comments

Comments
 (0)