Should the return type not be array|string|integer|null? Also, consider making the array more specific, something like array<String>, or String[].
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.
If the return type contains the type array, this check recommends the use of
a more specific type like String[] or array<String>.
Loading history...
54
*/
55
public function getHome()
56
{
57
return $this->file->get(self::SETTING_HOME);
58
}
59
60
/**
61
* {@inheritDoc}
62
*/
63
protected function prepareInput()
64
{
65
$input = new ArrayInput(['packages' => $this->getPackage()]);
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.If the return type contains the type array, this check recommends the use of a more specific type like
String[]
orarray<String>
.