Skip to content

Commit

Permalink
Fix phpstan errors
Browse files Browse the repository at this point in the history
  • Loading branch information
alecpl committed Nov 12, 2024
1 parent 3fba320 commit 55712f9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions src/app/DataMigrator/DAV.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,11 @@ function ($item) use (&$set, $dav_type, $folder, $existing, $callback) {
\Log::warning("Exception while fetching item list. Pretending the target collection is empty: " . $e->getMessage());
}



if (count($set->items)) {
$callback($set);
}

if ($result === false) {
if (!isset($result) || $result === false) {
throw new \Exception("Failed to get items from a DAV folder {$location}");
}

Expand Down
1 change: 0 additions & 1 deletion src/app/Wallet.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ public function chargeEntitlements($apply = true): int

// Get all relevant entitlements...
$entitlements = $this->entitlements()->withTrashed()
// @phpstan-ignore-next-line
->where(function (Builder $query) {
// existing entitlements created, or billed last less than a month ago
$query->where(function (Builder $query) {
Expand Down

0 comments on commit 55712f9

Please sign in to comment.