The return type could not be reliably inferred; please add a @return annotation.
Our type inference engine in quite powerful, but sometimes the code does not
provide enough clues to go by. In these cases we request you to add a @return
annotation as described here.
The expression $params of type array is implicitly converted to a boolean; are you sure this is intended? If so, consider using ! empty($expr) instead to make it clear that you intend to check for an array without elements.
This check marks implicit conversions of arrays to boolean values in a comparison. While in PHP an
empty array is considered to be equal (but not identical) to false, this is not always apparent.
Consider making the comparison explicit by using empty(..) or !empty(...) instead.
Loading history...
32
foreach ($params as $param) {
33
$parts = explode('=', $param);
34
if (count($parts) === 2) {
35
$paramList[$parts[0]] = $parts[1];
36
}
37
}
38
}
39
40
//set starting flag
41
$nextTask->Status = 'Running';
42
$nextTask->write();
43
echo 'Starting task ' . $task->getTitle() . "\n";
44
45
//execute task
46
$request = new HTTPRequest('GET', 'dev/tasks/' . $nextTask->Task, $paramList);
This check marks private properties in classes that are never used. Those properties can be removed.