Skip to content

Commit

Permalink
Suppress Psalm warnings on PHP 8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorprogger committed Aug 25, 2024
1 parent 8ee8fb6 commit 6baa9ce
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 3 deletions.
15 changes: 12 additions & 3 deletions src/Cli/SignalLoop.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,20 @@ class SignalLoop implements LoopInterface
{
use SoftLimitTrait;

/** @psalm-suppress UndefinedConstant */
/**
* @psalm-suppress UndefinedConstant
* @psalm-suppress MissingClassConstType
*/
protected const SIGNALS_EXIT = [SIGHUP, SIGINT, SIGTERM];
/** @psalm-suppress UndefinedConstant */
/**
* @psalm-suppress UndefinedConstant
* @psalm-suppress MissingClassConstType
*/
protected const SIGNALS_SUSPEND = [SIGTSTP];
/** @psalm-suppress UndefinedConstant */
/**
* @psalm-suppress UndefinedConstant
* @psalm-suppress MissingClassConstType
*/
protected const SIGNALS_RESUME = [SIGCONT];
protected bool $pause = false;
protected bool $exit = false;
Expand Down
3 changes: 3 additions & 0 deletions src/Enum/JobStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@

class JobStatus
{
/** @psalm-suppress MissingClassConstType */
final public const WAITING = 1;
/** @psalm-suppress MissingClassConstType */
final public const RESERVED = 2;
/** @psalm-suppress MissingClassConstType */
final public const DONE = 3;

protected int $status;
Expand Down
1 change: 1 addition & 0 deletions src/Message/EnvelopeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
*/
interface EnvelopeInterface extends MessageInterface
{
/** @psalm-suppress MissingClassConstType */
public const ENVELOPE_STACK_KEY = 'envelopes';

public static function fromMessage(MessageInterface $message): self;
Expand Down
1 change: 1 addition & 0 deletions src/QueueFactoryInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

interface QueueFactoryInterface
{
/** @psalm-suppress MissingClassConstType */
public const DEFAULT_CHANNEL_NAME = 'yii-queue';

/**
Expand Down

0 comments on commit 6baa9ce

Please sign in to comment.