[VarDumper] ReflectionFunction::isDisabled() is deprecated.

This commit is contained in:
Alexander M. Turek 2020-05-22 14:25:04 +02:00
parent 52abcbeec9
commit 1da347e5ba
1 changed files with 4 additions and 0 deletions

View File

@ -333,6 +333,10 @@ class ReflectionCaster
private static function addMap(&$a, \Reflector $c, $map, $prefix = Caster::PREFIX_VIRTUAL)
{
foreach ($map as $k => $m) {
if (\PHP_VERSION_ID >= 80000 && 'isDisabled' === $k) {
continue;
}
if (method_exists($c, $m) && false !== ($m = $c->$m()) && null !== $m) {
$a[$prefix.$k] = $m instanceof \Reflector ? $m->name : $m;
}