- var_dump: documentation ( source)
- get_debug_type: documentation ( source)
<?php
namespace Example;
class A {
public function test(string $a) {
return $a;
}
}
class B extends A {
public function test(mixed $a) {
return parent::test($a);
}
}
$b = new B();
var_dump(get_debug_type($b));