Skip to content

Commit cb9afc2

Browse files
#60 Fix PHP 8.1 Fatal error: Null can not be used as a standalone type. Apply quality rules
1 parent c91aed9 commit cb9afc2

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

src/Entity/ProcessSchedule.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,12 @@ public function setContext(array $context): void
8787
$this->context = $context;
8888
}
8989

90-
public function getNextExecution(): null
90+
/**
91+
* PHP 8.1 Fatal error: Null can not be used as a standalone type.
92+
*
93+
* @phpstan-ignore missingType.return
94+
*/
95+
public function getNextExecution()
9196
{
9297
return null;
9398
}

src/Message/ProcessExecuteHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#[AsMessageHandler]
2121
readonly class ProcessExecuteHandler
2222
{
23-
public function __construct(private ProcessManager $manager, private readonly ProcessHandler $processHandler)
23+
public function __construct(private ProcessManager $manager, private ProcessHandler $processHandler)
2424
{
2525
}
2626

0 commit comments

Comments
 (0)