1 | <?php |
||
16 | class NotIdentifiedException extends ReadableException |
||
17 | { |
||
18 | use NavigationMenuAccessControl; |
||
19 | /** |
||
20 | * @var SecurityManager |
||
21 | */ |
||
22 | private $securityManager; |
||
23 | |||
24 | /** |
||
25 | * NotIdentifiedException constructor. |
||
26 | * |
||
27 | * @param SecurityManager $securityManager |
||
|
|||
28 | */ |
||
29 | public function __construct(SecurityManager $securityManager = null) |
||
33 | |||
34 | /** |
||
35 | * Returns a readable HTML error message that's displayable to the user using templates. |
||
36 | * @return string |
||
37 | */ |
||
38 | public function getReadableError() |
||
58 | |||
59 | /** |
||
60 | * @return SecurityManager |
||
61 | */ |
||
62 | protected function getSecurityManager() |
||
66 | } |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.