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.
Loading history...
55
{
56
1
return $this->configObj ?? $this->configObj = new Config();
This check compares the return type specified in the @return annotation of a function
or method doc comment with the types returned by the function and raises an issue if they
mismatch.
Loading history...
66
*/
67
56
public function scene(string $name = 'untitled'): Scene
68
{
69
56
return $this->scenes[$name] ?? $this->scenes[$name] = new Scene($name);
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
@returnannotation as described here.