<?php declare(strict_types=1); class CallableString { private string $foo; public function doFoo(callable $foo): void { $this->foo = $foo; var_dump($this->foo); } } $c = new CallableString(); $c->doFoo('CallableString::doFoo');
You have javascript disabled. You will not be able to edit any code.