Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions psalm.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@
</errorLevel>
</UndefinedClass>

<UndefinedFunction>
<errorLevel type="suppress">
<directory name="src/Worker/Internal"/>
</errorLevel>
</UndefinedFunction>

<UnsupportedPropertyReferenceUsage>
<errorLevel type="suppress">
<directory name="src"/>
Expand Down
4 changes: 3 additions & 1 deletion src/Worker/Internal/TaskSubmission.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ final class TaskSubmission extends JobPacket
public function __construct(Task $task)
{
$this->task = $task;
parent::__construct(self::$nextId++);
$id = self::$nextId;
\PHP_VERSION_ID >= 80300 ? self::$nextId = \str_increment(self::$nextId) : ++self::$nextId;
parent::__construct($id);
}

public function getTask(): Task
Expand Down
Loading