These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | abstract class A { |
||
4 | function __construct() |
||
0 ignored issues
–
show
|
|||
5 | { |
||
6 | echo "Here\n"; |
||
7 | } |
||
8 | |||
9 | } |
||
10 | |||
11 | class B extends A { |
||
12 | |||
13 | } |
||
14 | |||
15 | $b = new B(); |
||
16 | |||
17 |
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.