Skip to content

Commit

Permalink
Revert "use $_ENV super global over getenv(), was failing with local …
Browse files Browse the repository at this point in the history
…testing"

This reverts commit fd0f40e.
  • Loading branch information
cmgmyr committed Oct 6, 2015
1 parent 7cb7174 commit e55d2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Cmgmyr/Messenger/Traits/Messagable.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit e55d2e4

Please sign in to comment.