<?php class Foo { private function bar(): void {} } $f = new Foo(); var_dump(method_exists($f, 'bar')); var_dump(is_callable($f, 'bar'));
You have javascript disabled. You will not be able to edit any code.