Skip to content

Commit

Permalink
Fix the edge case of .php extension chopping in make commands
Browse files Browse the repository at this point in the history
  • Loading branch information
osbre authored Jun 26, 2024
1 parent 72c872e commit 9d2ba44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Console/GeneratorCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ protected function sortImports($stub)
*/
protected function getNameInput()
{
return (string) Str::of($this->argument('name'))->trim()->beforeLast('.php');
return (string) Str::of($this->argument('name'))->trim()->rtrim('.php');
}

/**
Expand Down

0 comments on commit 9d2ba44

Please sign in to comment.