src/Reflection/ReflectionObject.php
public function getImmediateProperties(?int $filter = null) : array
    {
        return array_merge(
            $this->reflectionClass->getImmediateProperties($filter),
            $this->getRuntimeProperties($filter)
        );
    }
public function getImmediateProperties(?int $filter = null) : array
    {
        return array_merge(
            $this->reflectionClass->getImmediateProperties($filter),
            $this->getRuntimeProperties($filter)
        );
    }
{@inheritdoc}