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