Skip to content

Commit

Permalink
Update ENV variable for TRAVIS (#4)
Browse files Browse the repository at this point in the history
* issue-3-method-type: add method type declaration.

* issue-3-method-type: replace '' with getenv().
  • Loading branch information
hkorik authored Sep 9, 2022
1 parent f761463 commit 00bf8d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Blt/Plugin/EnvironmentDetector/TravisDetector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

class TravisDetector extends EnvironmentDetector {
public static function getCiEnv() {
return isset($_ENV['TRAVIS']) ? 'travis' : null;
return getenv('TRAVIS') ? 'travis' : null;
}

public static function getCiSettingsFile(): string {
Expand Down

0 comments on commit 00bf8d7

Please sign in to comment.