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...
18
*/
19
1
public static function fromArray(array $array)
20
{
21
1
$map = new Map(self::fromArrayString(), array_keys($array), $array);
22
1
return new static(implode(' ', $map->getValue()));
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.