src/FfprobeReader.php
public function supports($filename)
    {
        try {
            $streams = $this->ffprobe->streams($filename);
        } catch (\Exception $e) {
            return false;
        }

        foreach ($streams as $stream) {
            if (!$stream->has('codec_type') || !in_array($stream->get('codec_type'), ['audio', 'video'])) {
                return false;
            }
        }

        return true;
    }
public function supports($filename)
    {
        try {
            $streams = $this->ffprobe->streams($filename);
        } catch (\Exception $e) {
            return false;
        }

        foreach ($streams as $stream) {
            if (!$stream->has('codec_type') || !in_array($stream->get('codec_type'), ['audio', 'video'])) {
                return false;
            }
        }

        return true;
    }
{@inheritdoc}