Skip to content

Commit

Permalink
Fix Psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
msmakouz committed Mar 6, 2024
1 parent e231d05 commit 2b4a7dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Payload/Disconnect.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public function __construct(
public readonly string $reason,
bool $reconnect = false
) {
/** @psalm-suppress DeprecatedProperty */
$this->reconnect = $reconnect;
}
}
2 changes: 1 addition & 1 deletion src/Request/Connect.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ private function mapSubscriptions(array $subscriptions): array
foreach ($subscriptions as $name => $subscription) {
$sub = new DTO\SubscribeOptions();

if ($subscription->expireAt) {
if ($subscription->expireAt !== null) {
$sub->setExpireAt($this->parseExpiresAt($subscription->expireAt));
}

Expand Down

0 comments on commit 2b4a7dd

Please sign in to comment.