Skip to content

Commit f5a5cdc

Browse files
committed
use $_ENV super global over getenv(), was failing with local testing
1 parent 01ebb84 commit f5a5cdc

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 (getenv('APP_ENV') == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) {
54+
if ($_ENV['APP_ENV'] == 'testing' || !str_contains(\Illuminate\Foundation\Application::VERSION, '5.0')) {
5555
$participants = $participants->all();
5656
}
5757

0 commit comments

Comments
 (0)