This is an error 404
There are `0` results
preferences:
144.53 ms | 1399 KiB | 7 Q<?php
class A
{
private function testPrivate (bool $str) {
echo "Class A\n";
}
public function test()
{
$this->testPrivate(true);
}
function getClosure() {
return function() use ($foo) { return $this->testPrivate($foo); };
}
}
class B extends A {
private function testPrivate (string $value) {
echo "Class B\n";
}
function getClosure($foo) {
return function() use ($foo) { return $this->testPrivate($foo); };
}
}
$a = new A();
$b = new B();
$fn = $b->getClosure(true);
$fn2 = $fn->bindTo($a);
$fn2();