<?php trait Foo { public function run() { $f = function () { $this->execute(); }; $f(); } } class A { use Foo; private function execute() { echo "test"; } } $a = new A(); $a->run();
You have javascript disabled. You will not be able to edit any code.