src/Shared/Reader/ReaderAbstract.php
public static function readFile(/*# string */ $path)
    {
        // check file
        static::checkPath($path);

        // read file
        $data = static::readFromFile($path);

        // exception on error
        if (false === $data || null === $data) {
            throw new RuntimeException(static::getError($path));
        }

        return $data;
    }
public static function readFile(/*# string */ $path)
    {
        // check file
        static::checkPath($path);

        // read file
        $data = static::readFromFile($path);

        // exception on error
        if (false === $data || null === $data) {
            throw new RuntimeException(static::getError($path));
        }

        return $data;
    }
{@inheritDoc}