refactor(di): implement temporary variable for referencing in end() function
This commit is contained in:
@@ -64,7 +64,8 @@ final class CyclicDependencyException extends ContainerException
|
||||
private function buildMessage(): string
|
||||
{
|
||||
$cycleStr = implode(' → ', $this->cycle);
|
||||
$requestedClass = end($this->fullChain);
|
||||
$fullChain = $this->fullChain;
|
||||
$requestedClass = end($fullChain);
|
||||
|
||||
// Prüfe ob Initializer-Zyklus vorliegt
|
||||
$initializerInfo = $this->detectInitializerCycle();
|
||||
|
||||
Reference in New Issue
Block a user