1 | <?php |
||
7 | * @author Christian Blank <[email protected]> |
||
8 | */ |
||
9 | class SilverstripePermission implements IPermissionChecks { |
||
10 | |||
11 | /** |
||
12 | * @param \Member $member |
||
13 | * @return bool |
||
|
|||
14 | */ |
||
15 | public function isAdmin($member) { |
||
16 | return \Permission::checkMember($member, 'ADMIN'); |
||
17 | } |
||
18 | } |
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.