Skip to content

Commit d515c8b

Browse files
committed
Add type hint
1 parent ca826a2 commit d515c8b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,7 @@ public static function invalidateFileCache($file)
381381
* @return boolean True if path is a file
382382
*
383383
*/
384-
public static function exists($file): bool
384+
public static function exists(string $file): bool
385385
{
386386
return is_file(Path::clean($file));
387387
}

src/Folder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ public static function makeSafe($path)
555555
*
556556
* @return boolean True if path is a folder
557557
*/
558-
public static function exists($path): bool
558+
public static function exists(string $path): bool
559559
{
560560
return is_dir(Path::clean($path));
561561
}

0 commit comments

Comments
 (0)