<?php

namespace WyriHaximus\FlyPie;

use League\Flysystem\AdapterInterface;

trait FilesystemsTrait
{
    /**
     * Proxy to the FilesystemRegistry.
     *
     * @param string $alias Alias name requested.
     *
     * @return AdapterInterface
     */
    public function filesystem($alias)
    {
        return FilesystemRegistry::retrieve($alias);
    }
}

<?php

namespace WyriHaximus\FlyPie;

use League\Flysystem\FilesystemInterface;

trait FilesystemsTrait
{
    /**
     * Proxy to the FilesystemRegistry.
     *
     * @param string $alias Alias name requested.
     *
     * @return FilesystemInterface
     */
    public function filesystem($alias)
    {
        return FilesystemRegistry::retrieve($alias);
    }
}

Change the phpdoc return type to the correct one
Change the phpdoc return type to the correct one

Hi! 

I believe an error did sneak into the code here - correct me if I'm wrong.

I'm not sure whether this would require a major bump...