xref: /PHP-8.2/Zend/tests/closure_052.phpt (revision 7aacc705)
1--TEST--
2Closure 052: static::class in non-static closure in static method.
3--FILE--
4<?php
5
6class A {
7    static function foo() {
8        $f = function() {
9            return static::class;
10        };
11        return $f();
12    }
13}
14
15class B extends A {}
16
17var_dump(B::foo());
18?>
19--EXPECT--
20string(1) "B"
21