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