Skip to content

Commit 508c588

Browse files
committed
Fixes for PHPStan Level 6
1 parent 7a29c21 commit 508c588

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

src/DataTransferObjects/Filters/FilterPillData.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getPillValue(): array|string|null
4343

4444
public function getHasCustomPillBlade(): bool
4545
{
46-
return $this->hasCustomPillBlade ?? false;
46+
return $this->hasCustomPillBlade;
4747
}
4848

4949
public function getCustomPillBlade(): ?string
@@ -53,32 +53,32 @@ public function getCustomPillBlade(): ?string
5353

5454
public function getCustomResetButtonAttributes(): array
5555
{
56-
return $this->customResetButtonAttributes ?? [];
56+
return $this->customResetButtonAttributes;
5757
}
5858

5959
public function getIsAnExternalLivewireFilter(): int
6060
{
61-
return intval($this->isAnExternalLivewireFilter ?? 0);
61+
return intval($this->isAnExternalLivewireFilter);
6262
}
6363

6464
public function getSeparator(): string
6565
{
66-
return $this->separator ?? ', ';
66+
return $this->separator;
6767
}
6868

6969
public function shouldUsePillsAsHtml(): int
7070
{
71-
return intval($this->renderPillsAsHtml ?? 0);
71+
return intval($this->renderPillsAsHtml);
7272
}
7373

7474
public function shouldUsePillsTitleAsHtml(): int
7575
{
76-
return intval($this->renderPillsTitleAsHtml ?? 0);
76+
return intval($this->renderPillsTitleAsHtml);
7777
}
7878

7979
public function shouldWatchForEvents(): int
8080
{
81-
return intval($this->watchForEvents ?? 0);
81+
return intval($this->watchForEvents );
8282
}
8383

8484
public function isPillValueAnArray(): bool

src/DataTransferObjects/Filters/StandardFilterPillData.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function getPillValue(): string
2828

2929
public function shouldUsePillsAsHtml(): bool
3030
{
31-
return $this->renderPillsAsHtml ?? false;
31+
return $this->renderPillsAsHtml;
3232
}
3333

3434
public function toArray(): array

src/Traits/Configuration/CollapsingColumnConfiguration.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ public function setCollapsingColumnsDisabled(): self
2727

2828
public function unsetCollapsedStatuses(): void
2929
{
30-
unset($this->shouldAlwaysCollapse);
31-
unset($this->shouldMobileCollapse);
32-
unset($this->shouldTabletCollapse);
30+
$this->shouldAlwaysCollapse = false;
31+
$this->shouldMobileCollapse = false;
32+
$this->shouldTabletCollapse = false;
3333
}
3434
}

0 commit comments

Comments
 (0)