blob: c9f0ffef4a88b15def6dace4b08224c893bea85b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
--TEST--
Return type of self is allowed in closure
--FILE--
<?php
$c = function(): self { return $this; };
class Bar { }
var_dump($c->call(new Bar));
--EXPECT--
object(Bar)#2 (0) {
}
|