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

Commit

Permalink
fix some errors, remove .editerconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jan 4, 2019
1 parent 03ffa12 commit 2ce75b8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 19 deletions.
17 changes: 0 additions & 17 deletions .editorconfig

This file was deleted.

2 changes: 1 addition & 1 deletion src/Directory.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public static function getFiles($path, $ext = null, $recursive = false, $parent
* @throws \InvalidArgumentException
* @throws FileNotFoundException
*/
public static function getFilesInfo($path, $ext = null, $recursive = 0, &$list): array
public static function getFilesInfo($path, $ext = null, $recursive = 0, &$list = []): array
{
$path = self::pathFormat($path);

Expand Down
2 changes: 1 addition & 1 deletion src/FileSystem.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public static function pathFormat(string $dirName): string
{
$dirName = str_ireplace('\\', '/', trim($dirName));

return substr($dirName, -1) === '/' ? $dirName : $dirName . '/';
return substr((string)$dirName, -1) === '/' ? $dirName : $dirName . '/';
}

/**
Expand Down

0 comments on commit 2ce75b8

Please sign in to comment.