1--TEST--
2Testing Closure::fromCallable() functionality: Late static binding
3--FILE--
4<?php
5
6class A {
7    public static function test() {
8        var_dump(static::class);
9    }
10}
11
12class B extends A {
13}
14
15Closure::fromCallable(['A', 'test'])();
16Closure::fromCallable(['B', 'test'])();
17
18?>
19--EXPECT--
20string(1) "A"
21string(1) "B"
22