- var_dump: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(E_ALL | E_STRICT);
abstract class a {
public static $hoge;
public static function aa() {
static::$hoge = new static;
}
}
class b extends a {
}
b::aa();
var_dump(a::$hoge, b::$hoge);