xref: /PHP-8.2/Zend/tests/call_static_006.phpt (revision f8d79582)
1--TEST--
2Testing __callStatic
3--FILE--
4<?php
5
6class foo {
7    static function __callstatic($a, $b) {
8        var_dump($a);
9    }
10}
11
12foo::__construct();
13
14?>
15--EXPECTF--
16Fatal error: Uncaught Error: Cannot call constructor in %s:%d
17Stack trace:
18#0 {main}
19  thrown in %s on line %d
20