These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /** |
||
3 | * |
||
4 | */ |
||
5 | |||
6 | namespace Mvc5\Plugin; |
||
7 | |||
8 | class GlobalVar |
||
9 | extends Value |
||
10 | { |
||
11 | /** |
||
12 | * @return mixed |
||
13 | */ |
||
14 | function config() |
||
0 ignored issues
–
show
|
|||
15 | { |
||
16 | return $GLOBALS[$this->config] ?? null; |
||
17 | } |
||
18 | } |
||
19 |
Adding explicit visibility (
private
,protected
, orpublic
) is generally recommend to communicate to other developers how, and from where this method is intended to be used.