Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FilesystemMap::set() should expects FilesystemInterface instead of Filesystem #576

Merged
merged 1 commit into from
Aug 30, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/Gaufrette/FilesystemMap.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ public function all()
* Register the given filesystem for the specified domain.
*
* @param string $domain
* @param Filesystem $filesystem
* @param FilesystemInterface $filesystem
*
* @throws InvalidArgumentException when the specified domain contains
* @throws \InvalidArgumentException when the specified domain contains
* forbidden characters
*/
public function set($domain, Filesystem $filesystem)
public function set($domain, FilesystemInterface $filesystem)
{
if (!preg_match('/^[-_a-zA-Z0-9]+$/', $domain)) {
throw new \InvalidArgumentException(sprintf(
Expand Down Expand Up @@ -61,9 +61,9 @@ public function has($domain)
*
* @param string $domain
*
* @return Filesystem
* @return FilesystemInterface
*
* @throw InvalidArgumentException when there is no filesystem registered
* @throw \InvalidArgumentException when there is no filesystem registered
* for the specified domain
*/
public function get($domain)
Expand Down