From c59f4c56fdd070ee6f1512f6e37f7f968f30f3d7 Mon Sep 17 00:00:00 2001 From: Tac Tacelosky Date: Wed, 25 Oct 2023 14:44:40 -0600 Subject: [PATCH] Update AbstractBundle.php, use !isset($this->path) Fixes issue #52292 --- src/Symfony/Component/HttpKernel/Bundle/AbstractBundle.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Symfony/Component/HttpKernel/Bundle/AbstractBundle.php b/src/Symfony/Component/HttpKernel/Bundle/AbstractBundle.php index d24a2bc7888d8..76f314ab97de1 100644 --- a/src/Symfony/Component/HttpKernel/Bundle/AbstractBundle.php +++ b/src/Symfony/Component/HttpKernel/Bundle/AbstractBundle.php @@ -50,7 +50,7 @@ public function getContainerExtension(): ?ExtensionInterface public function getPath(): string { - if (null === $this->path) { + if (!isset($this->path)) { $reflected = new \ReflectionObject($this); // assume the modern directory structure by default $this->path = \dirname($reflected->getFileName(), 2);