--TEST-- Test ReflectionProperty::isReadable() static --FILE-- isReadable(null, new A); } catch (Exception $e) { echo $e::class, ': ', $e->getMessage(), "\n"; } $rc = new ReflectionClass('A'); foreach ($rc->getProperties() as $rp) { echo $rp->getName() . ' from global: '; var_dump($rp->isReadable(null)); } ?> --EXPECT-- ReflectionException: null is expected as object argument for static properties a from global: bool(true) b from global: bool(false) c from global: bool(true) d from global: bool(false) e from global: bool(false) f from global: bool(true)