1--TEST-- 2First Class Callable from Private Scope 3--FILE-- 4<?php 5class Foo { 6 private function method() { 7 return __METHOD__; 8 } 9 10 public function bar() { 11 return $this->method(...); 12 } 13} 14 15$foo = new Foo; 16$bar = $foo->bar(...); 17 18echo ($bar())(); 19?> 20--EXPECT-- 21Foo::method 22