Skip to content

Commit a4c0530

Browse files
deepakdhanjiDeepak Chaudhary
andauthored
PHP 8.4 deprecation fixes - Implicitly nullable parameters (#5)
Co-authored-by: Deepak Chaudhary <deepak@wizzy.ai> Thanks!
1 parent 9e8c903 commit a4c0530

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Exception/CommandJobException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class CommandJobException extends Exception
88
{
9-
public function __construct($message = null, $code = 0, Exception $previous = null)
9+
public function __construct(string $message = '', int $code = 0, ?Exception $previous = null)
1010
{
1111
parent::__construct($message, $code, $previous);
1212
}

src/Service/CommandJobFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(
4343
* @throws ORMException
4444
* @throws OptimisticLockException
4545
*/
46-
public function createCommandJob(string $commandName, array $commandParams, int $entityId = null, string $entityClassName = null, Job $parentJob = null, JobRecurring $parentJobRecurring = null, ?DateTimeImmutable $postponedStartAt = null): Job
46+
public function createCommandJob(string $commandName, array $commandParams, ?int $entityId = null, ?string $entityClassName = null, ?Job $parentJob = null, ?JobRecurring $parentJobRecurring = null, ?DateTimeImmutable $postponedStartAt = null): Job
4747
{
4848
// Check if user is loaded and is granted job creation
4949
if ($this->security->getUser() && !$this->security->isGranted(JobQueuePermissions::ROLE_JOB_CREATE)) {

0 commit comments

Comments
 (0)