From 7e2ee302440f6311f569b1b00f908a5c7c0bbdc0 Mon Sep 17 00:00:00 2001 From: Jay Potter Date: Wed, 12 Aug 2026 15:34:59 -0400 Subject: [PATCH] call ->load() --- src/Potter/Environment/Behaviour.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Potter/Environment/Behaviour.php b/src/Potter/Environment/Behaviour.php index bc41f4f..08002ff 100644 --- a/src/Potter/Environment/Behaviour.php +++ b/src/Potter/Environment/Behaviour.php @@ -17,8 +17,9 @@ trait Behaviour private static function addEnvironmentBehaviour(Container $container): void { static::addEnvironment($container); - self::getEnvironment($container) - ->required(['APPLICATION_NAME']); + $environment = self::getEnvironment($container); + $environment->load(); + $environment->required(['APPLICATION_NAME']); } private static function getEnvironment(Container $container): \Dotenv\Dotenv