Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
add more return type declare
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Apr 22, 2018
1 parent e58336d commit b268990
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ public static function getList($path, $pid = 0, $son = 0, array $list = []): arr
* @return array
* @throws FileNotFoundException
*/
public static function getDirs($path, $loop = false, $parent = null, array $list = [])
public static function getDirs($path, $loop = false, $parent = null, array $list = []): array
{
$path = self::pathFormat($path);

Expand Down
4 changes: 2 additions & 2 deletions src/ModifyWatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function __construct(string $idFile = null)
* @param string $idFile
* @return $this
*/
public function setIdFile(string $idFile)
public function setIdFile(string $idFile): self
{
$this->idFile = $idFile;

Expand Down Expand Up @@ -147,7 +147,7 @@ public function watch($dirs): self
* @param string|array $dirs
* @return $this
*/
public function watchDir($dirs)
public function watchDir($dirs): self
{
$this->watchDirs = array_merge($this->watchDirs, (array)$dirs);

Expand Down

0 comments on commit b268990

Please sign in to comment.