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

Commit 2ce75b8

Browse files
committed
fix some errors, remove .editerconfig
1 parent 03ffa12 commit 2ce75b8

File tree

3 files changed

+2
-19
lines changed

3 files changed

+2
-19
lines changed

.editorconfig

Lines changed: 0 additions & 17 deletions
This file was deleted.

src/Directory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ public static function getFiles($path, $ext = null, $recursive = false, $parent
257257
* @throws \InvalidArgumentException
258258
* @throws FileNotFoundException
259259
*/
260-
public static function getFilesInfo($path, $ext = null, $recursive = 0, &$list): array
260+
public static function getFilesInfo($path, $ext = null, $recursive = 0, &$list = []): array
261261
{
262262
$path = self::pathFormat($path);
263263

src/FileSystem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ public static function pathFormat(string $dirName): string
6565
{
6666
$dirName = str_ireplace('\\', '/', trim($dirName));
6767

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

7171
/**

0 commit comments

Comments
 (0)