Skip to content

Commit a0627e9

Browse files
authored
Merge pull request #576 from clement-michelet/bugfix/filesystem-map-should-use-interface
FilesystemMap::set() should expects FilesystemInterface instead of Filesystem
2 parents dd0d2e9 + 7eb06fb commit a0627e9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Gaufrette/FilesystemMap.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ public function all()
2626
* Register the given filesystem for the specified domain.
2727
*
2828
* @param string $domain
29-
* @param Filesystem $filesystem
29+
* @param FilesystemInterface $filesystem
3030
*
31-
* @throws InvalidArgumentException when the specified domain contains
31+
* @throws \InvalidArgumentException when the specified domain contains
3232
* forbidden characters
3333
*/
34-
public function set($domain, Filesystem $filesystem)
34+
public function set($domain, FilesystemInterface $filesystem)
3535
{
3636
if (!preg_match('/^[-_a-zA-Z0-9]+$/', $domain)) {
3737
throw new \InvalidArgumentException(sprintf(
@@ -61,9 +61,9 @@ public function has($domain)
6161
*
6262
* @param string $domain
6363
*
64-
* @return Filesystem
64+
* @return FilesystemInterface
6565
*
66-
* @throw InvalidArgumentException when there is no filesystem registered
66+
* @throw \InvalidArgumentException when there is no filesystem registered
6767
* for the specified domain
6868
*/
6969
public function get($domain)

0 commit comments

Comments
 (0)