Skip to content

Commit 53f16fd

Browse files
Nicolas Reynisfrankdejonge
Nicolas Reynis
authored andcommitted
More precise signatures
1 parent 2323c98 commit 53f16fd

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

src/Filesystem.php

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88
use League\Flysystem\Util\ContentListingFormatter;
99

1010
/**
11-
* @method void emptyDir(string $dirname)
12-
* @method array getWithMetadata(string $path, array $metadata)
13-
* @method bool forceCopy(string $path, string $newpath)
14-
* @method bool forceRename(string $path, string $newpath)
15-
* @method array listFiles(string $path = '', boolean $recursive = false)
16-
* @method array listPaths(string $path = '', boolean $recursive = false)
17-
* @method array listWith(array $keys = [], $directory = '', $recursive = false)
11+
* @method void emptyDir(string $dirname)
12+
* @method array|false getWithMetadata(string $path, string[] $metadata)
13+
* @method bool forceCopy(string $path, string $newpath)
14+
* @method bool forceRename(string $path, string $newpath)
15+
* @method array listFiles(string $path = '', boolean $recursive = false)
16+
* @method string[] listPaths(string $path = '', boolean $recursive = false)
17+
* @method array listWith(string[] $keys = [], $directory = '', $recursive = false)
1818
*/
1919
class Filesystem implements FilesystemInterface
2020
{

src/Plugin/GetWithMetadata.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ public function getMethod()
2020
/**
2121
* Get metadata for an object with required metadata.
2222
*
23-
* @param string $path path to file
24-
* @param array $metadata metadata keys
23+
* @param string $path path to file
24+
* @param string[] $metadata metadata keys
2525
*
2626
* @throws InvalidArgumentException
2727
* @throws FileNotFoundException

src/Plugin/ListPaths.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function getMethod()
2020
* @param string $directory
2121
* @param bool $recursive
2222
*
23-
* @return array paths
23+
* @return string[] paths
2424
*/
2525
public function handle($directory = '', $recursive = false)
2626
{

src/Plugin/ListWith.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public function getMethod()
1717
/**
1818
* List contents with metadata.
1919
*
20-
* @param array $keys
21-
* @param string $directory
22-
* @param bool $recursive
20+
* @param string[] $keys
21+
* @param string $directory
22+
* @param bool $recursive
2323
*
2424
* @return array listing with metadata
2525
*/

0 commit comments

Comments
 (0)