Skip to content

Commit e55d2e4

Browse files
committed
Revert "use $_ENV super global over getenv(), was failing with local testing"
This reverts commit fd0f40e.
1 parent 7cb7174 commit e55d2e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Cmgmyr/Messenger/Traits/Messagable.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public function threadsWithNewMessages()
5151
* I don't want to include as a dependency for this package...it's overkill. So let's
5252
* exclude this check in the testing environment.
5353
*/
54-
if ($_ENV['APP_ENV'] == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) {
54+
if (getenv('APP_ENV') == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) {
5555
$participants = $participants->all();
5656
}
5757

0 commit comments

Comments
 (0)