From 99a62ffdfb2c8937c338d8e4ca088cd6f0c31df2 Mon Sep 17 00:00:00 2001 From: Brandon Date: Thu, 30 May 2024 18:52:30 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Fix=20config=20merging=20when=20?= =?UTF-8?q?built=20for=20production=20(#77)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/LaracordServiceProvider.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/LaracordServiceProvider.php b/src/LaracordServiceProvider.php index 802a29f..5b346bb 100644 --- a/src/LaracordServiceProvider.php +++ b/src/LaracordServiceProvider.php @@ -72,13 +72,13 @@ public function boot() */ protected function getConfigs(string $path): array { - $config = []; + $configs = []; foreach (Finder::create()->files()->name('*.php')->in($path) as $file) { - $config[basename($file->getRealPath(), '.php')] = require $file->getRealPath(); + $configs[basename($file->getPathname(), '.php')] = require $file->getPathname(); } - return $config; + return $configs; } /**