From e55d2e4141db0c067d1041fd663d0ad1977578ae Mon Sep 17 00:00:00 2001 From: Chris Gmyr Date: Tue, 6 Oct 2015 10:09:32 -0400 Subject: [PATCH] Revert "use $_ENV super global over getenv(), was failing with local testing" This reverts commit fd0f40ebf283cd55c690fbfba7e8d6c008ebd03e. --- src/Cmgmyr/Messenger/Traits/Messagable.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Cmgmyr/Messenger/Traits/Messagable.php b/src/Cmgmyr/Messenger/Traits/Messagable.php index 711054c..3292dc7 100644 --- a/src/Cmgmyr/Messenger/Traits/Messagable.php +++ b/src/Cmgmyr/Messenger/Traits/Messagable.php @@ -51,7 +51,7 @@ public function threadsWithNewMessages() * I don't want to include as a dependency for this package...it's overkill. So let's * exclude this check in the testing environment. */ - if ($_ENV['APP_ENV'] == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) { + if (getenv('APP_ENV') == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) { $participants = $participants->all(); }