From 7eb06fb73db89095f4fcc6b37964599747a5411b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20MICHELET?= Date: Thu, 30 Aug 2018 14:31:23 +0200 Subject: [PATCH] FilesystemMap::set() should expects FilesystemInterface instead of Filesystem Fix: #575 --- src/Gaufrette/FilesystemMap.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Gaufrette/FilesystemMap.php b/src/Gaufrette/FilesystemMap.php index 384e69721..96deae392 100644 --- a/src/Gaufrette/FilesystemMap.php +++ b/src/Gaufrette/FilesystemMap.php @@ -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( @@ -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)