Skip to content

Commit

Permalink
Missing return type in getFilenameWithoutExtension function
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackfelix committed Apr 1, 2022
1 parent d53a450 commit 3a44421
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ public static function getRoot(string $path): string
* @param string|null $extension if specified, only that extension is cut
* off (may contain leading dot)
*/
public static function getFilenameWithoutExtension(string $path, string $extension = null)
public static function getFilenameWithoutExtension(string $path, string $extension = null): string
{
if ('' === $path) {
return '';
Expand Down

0 comments on commit 3a44421

Please sign in to comment.