1--TEST--
2First Class Callable preserve Called Scope
3--FILE--
4<?php
5class Foo {
6    public static function method() {
7        return static::class;
8    }
9}
10
11class Bar extends Foo {}
12
13$bar = Bar::method(...);
14
15echo $bar();
16?>
17--EXPECT--
18Bar
19