src/Viserio/Component/View/ViewFinder.php
public function addExtension(string $extension): FinderContract
    {
        if (($index = \array_search($extension, self::$extensions, true)) !== false) {
            unset(self::$extensions[$index]);
        }

        \array_unshift(self::$extensions, $extension);

        return $this;
    }
public function addExtension(string $extension): FinderContract
    {
        if (($index = \array_search($extension, self::$extensions, true)) !== false) {
            unset(self::$extensions[$index]);
        }

        \array_unshift(self::$extensions, $extension);

        return $this;
    }
{@inheritdoc}