It seems like $workload defined by parameter $workload on line 26 can also be of type object<Serializable>; however, Task\Task::__construct() does only seem to accept string|null, maybe add an additional type check?
This check looks at variables that have been passed in as parameters and are passed out again
to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.
Loading history...
29
}
30
31
/**
32
* {@inheritdoc}
33
*/
34
public function createTaskExecution(TaskInterface $task, \DateTime $scheduleTime)
35
{
36
return new TaskExecution($task, $task->getHandlerClass(), $scheduleTime, $task->getWorkload());
It seems like $task->getWorkload() targeting Task\TaskInterface::getWorkload() can also be of type object<Serializable>; however, Task\Execution\TaskExecution::__construct() does only seem to accept string|null, maybe add an additional type check?
This check looks at variables that are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
This check looks at variables that have been passed in as parameters and are passed out again to other methods.
If the outgoing method call has stricter type requirements than the method itself, an issue is raised.
An additional type check may prevent trouble.