<?php
class A
{
private function testPrivate (bool $str) {
echo "Class A\n";
}
public function test()
{
$this->testPrivate(true);
}
}
class B extends A {
private function testPrivate (string $value) {
echo "Class B\n";
}
}
$b = new B();
$b->test();
Catchable fatal error: Argument 1 passed to A::testPrivate() must be an instance of bool, boolean given, called in /in/ObOa4 on line 11 and defined in /in/ObOa4 on line 5
Process exited with code 255.