Skip to content

Commit 7606013

Browse files
Fix #538: Fix type hint for previous parameter in InvalidJobException class constructor in PHP 8.4 (implicitly marking parameter nullable
1 parent c04cae3 commit 7606013

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Yii2 Queue Extension Change Log
77
- Bug #522: Fix SQS driver type error with custom value passed to `queue/listen` (flaviovs)
88
- Bug #528: Prevent multiple execution of aborted jobs (luke-)
99
- Enh #493: Pass environment variables to sub-processes (mgrechanik)
10+
- Bug #538: Fix type hint for previous parameter in `InvalidJobException` class constructor in PHP `8.4` (implicitly marking parameter nullable) (terabytesoftw)
1011

1112
2.3.7 April 29, 2024
1213
--------------------

src/InvalidJobException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ class InvalidJobException extends \Exception
3131
* @param int $code
3232
* @param Throwable|null $previous
3333
*/
34-
public function __construct($serialized, $message = '', $code = 0, Throwable $previous = null)
34+
public function __construct($serialized, $message = '', $code = 0, $previous = null)
3535
{
3636
$this->serialized = $serialized;
3737
parent::__construct($message, $code, $previous);

tests/docker/php/7.1/Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM php:7.1-cli
22

3-
RUN apt-get update \
3+
RUN echo "deb http://archive.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list \
4+
&& echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list \
5+
&& apt-get update --allow-releaseinfo-change \
46
&& apt-get install -y unzip curl zlib1g-dev libicu-dev libpq-dev libgearman-dev
57

68
RUN docker-php-ext-install zip pcntl bcmath pdo_mysql intl pdo_pgsql

tests/docker/php/7.2/Dockerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
FROM php:7.2-cli
22

3-
RUN apt-get update \
4-
&& apt-get install -y unzip libbz2-dev curl zlib1g-dev libicu-dev libpq-dev libgearman-dev
3+
RUN echo "deb http://archive.debian.org/debian buster main contrib non-free" > /etc/apt/sources.list \
4+
&& echo "deb http://archive.debian.org/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list \
5+
&& apt-get update --allow-releaseinfo-change \
6+
&& apt-get install -y unzip curl zlib1g-dev libicu-dev libpq-dev libgearman-dev
57

68
RUN docker-php-ext-install zip pcntl bcmath pdo_mysql intl pdo_pgsql
79

0 commit comments

Comments
 (0)