src/Valkyrja/Dispatcher/NativeDispatcher.php
public function dispatchClassProperty(Dispatch $dispatch)
    {
        $response = null;

        // Ensure a class and property exist before continuing
        if (
            null === $dispatch->getClass()
            || null === $dispatch->getProperty()
        ) {
            return $response;
        }

        $class    = $dispatch->getClass();
        $property = $dispatch->getProperty();

        // If this is a static property
        if ($dispatch->isStatic()) {
            $response = $class::$$property;
        } else {
            // Get the class from the container
            $class    = $this->app->container()->get($dispatch->getClass());
            $response = $class->{$property};
        }

        return $response ?? $this->DISPATCHED;
    }
public function dispatchClassProperty(Dispatch $dispatch)
    {
        $response = null;

        // Ensure a class and property exist before continuing
        if (
            null === $dispatch->getClass()
            || null === $dispatch->getProperty()
        ) {
            return $response;
        }

        $class    = $dispatch->getClass();
        $property = $dispatch->getProperty();

        // If this is a static property
        if ($dispatch->isStatic()) {
            $response = $class::$$property;
        } else {
            // Get the class from the container
            $class    = $this->app->container()->get($dispatch->getClass());
            $response = $class->{$property};
        }

        return $response ?? $this->DISPATCHED;
    }
Dispatch a class property.

@param Dispatch $dispatch The dispatch

@return mixed