<?php
class Base {
}
class NoMagic extends Base {
function isParentFoobarCallable() {
return is_callable('parent::foobar');
}
}
class Magic extends NoMagic {
function __call($method, $args) {}
}
$nomagic = new NoMagic();
var_dump($nomagic->isParentFoobarCallable());
$magic = new Magic();
var_dump($magic->isParentFoobarCallable());
Deprecated: Use of "parent" in callables is deprecated in /in/q3pbc on line 8
bool(false)
Deprecated: Use of "parent" in callables is deprecated in /in/q3pbc on line 8
bool(false)