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...
43
*/
44
public function apply(Request $request)
45
{
46
foreach ($this->strategies as $strategy) {
47
$name = $strategy->apply($request);
48
$this->roles = $strategy->getRoles();
49
50
if ($name && $strategy->stopPropagation()) {
51
return $name;
52
}
53
}
54
55
return false;
56
}
57
58
/**
59
* Decider to stop other strategies running after from being considered.
This check compares the return type specified in the
@returnannotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.