Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

JobInterface::execute no longer typed

Compare
Choose a tag to compare
@roelvanduijnhoven roelvanduijnhoven released this 25 Nov 11:00
· 76 commits to master since this release
b06866b

This minor release will remove the type definition of JobInterface::execute. Note that the meaning of the return type did not change. So as long as you return void|?int (note the void, so you really can omit returning at all) you will be fine.

The reasoning behind this is that explicitly having to type return ProcessJobEvent::JOB_STATUS_SUCCESS was not really helpful.

Note that you can still choose to type your own jobs with the old public function execute(): ?int.