<?php class Foo { public string $message = "yo"; function foo(callable $fn): void { $fn(); } function a() { $this->foo(function () { echo $this->message; }); } function b() { $this->foo(static function () { echo $this->message; }); } }
You have javascript disabled. You will not be able to edit any code.