xref: /PHP-8.1/Zend/tests/magic_methods_003.phpt (revision fbbcf82a)
1--TEST--
2Testing __unset declaring as static
3--FILE--
4<?php
5
6class foo {
7    static function __unset($a) {
8        print "unset\n";
9    }
10}
11
12?>
13--EXPECTF--
14Fatal error: Method foo::__unset() cannot be static in %s on line %d
15