diff --git a/src/Cli/SignalLoop.php b/src/Cli/SignalLoop.php index 5d765abe..6e0524ba 100644 --- a/src/Cli/SignalLoop.php +++ b/src/Cli/SignalLoop.php @@ -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; diff --git a/src/Enum/JobStatus.php b/src/Enum/JobStatus.php index beca6c3c..764f98d1 100644 --- a/src/Enum/JobStatus.php +++ b/src/Enum/JobStatus.php @@ -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; diff --git a/src/Message/EnvelopeInterface.php b/src/Message/EnvelopeInterface.php index b0f8d89f..7c58daa1 100644 --- a/src/Message/EnvelopeInterface.php +++ b/src/Message/EnvelopeInterface.php @@ -9,6 +9,7 @@ */ interface EnvelopeInterface extends MessageInterface { + /** @psalm-suppress MissingClassConstType */ public const ENVELOPE_STACK_KEY = 'envelopes'; public static function fromMessage(MessageInterface $message): self; diff --git a/src/QueueFactoryInterface.php b/src/QueueFactoryInterface.php index 82c53f7f..9761e583 100644 --- a/src/QueueFactoryInterface.php +++ b/src/QueueFactoryInterface.php @@ -8,6 +8,7 @@ interface QueueFactoryInterface { + /** @psalm-suppress MissingClassConstType */ public const DEFAULT_CHANNEL_NAME = 'yii-queue'; /**