Skip to content

Commit

Permalink
wip: Add comment for code, that should not be reach in the context of…
Browse files Browse the repository at this point in the history
… nested creation
  • Loading branch information
tomasnorre committed Jan 15, 2025
1 parent 5eb1d51 commit 0e46795
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Maker/Factory/FactoryGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ function(string $newClassName) use ($factoryClass) {
}
}

// Should never do this if file/class already exists.
// A class_exists($factoryClass), return false, I don't know if it's not part of the autoloader, that the class is not found.
// I suspect that it's part of the problem.
$generator->generateClass(
$factoryClass,
__DIR__.'/../../../skeleton/Factory.tpl.php',
Expand Down

0 comments on commit 0e46795

Please sign in to comment.