1--TEST--
2Closure 056: self::class in non-static closure in static method.
3
4--FILE--
5<?php
6
7class A {
8 static function foo() {
9 $f = function() {
10 return self::class;
11 };
12 return $f();
13 }
14}
15
16class B extends A {}
17
18var_dump(B::foo());
19
20--EXPECT--
21string(1) "A"
22