- Output for 7.1.0 - 7.1.15, 7.2.0 - 7.2.3
- Parse error: syntax error, unexpected '}', expecting ';' in /in/TJUoZ on line 9
Process exited with code 255.
<?php
class A {
private static $VAR = [17,289,4913];
public function foo() {
return function () {
var_dump($this::$VAR);
}
}
}
(new A)->foo()();