Skip to content

Commit

Permalink
ExtendClass generator: Strip leading slashes from class names
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Feb 5, 2025
1 parent 4ff12e8 commit 69b2e4c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,8 @@ protected function configure()
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$class = $input->getArgument('class_name');
// Normalize class name to exclude leading slashes; a FQCN doesn't need it:
$class = ltrim($input->getArgument('class_name'), '\\');
$target = $input->getArgument('target_module');
$extendFactory = $input->getOption('extendfactory');

Expand Down

0 comments on commit 69b2e4c

Please sign in to comment.