src/Viserio/Component/Exception/Console/Handler.php
private static function getFileLines(string $filePath, int $start, int $length): ?array
    {
        if (($contents = self::getFileContents($filePath)) !== null) {
            $lines = \explode("\n", $contents);

            if ($start < 0) {
                $start = 0;
            }

            return \array_slice($lines, $start, $length, true);
        }
    }
private static function getFileLines(string $filePath, int $start, int $length): ?array
    {
        if (($contents = self::getFileContents($filePath)) !== null) {
            $lines = \explode("\n", $contents);

            if ($start < 0) {
                $start = 0;
            }

            return \array_slice($lines, $start, $length, true);
        }
    }
Returns the contents of the file for this frame as an
array of lines, and optionally as a clamped range of lines.

@param string $filePath
@param int    $start
@param int    $length

@return null|string[]