Skip to content

Commit

Permalink
[5.6] Add strict compare in Application.php (#23585)
Browse files Browse the repository at this point in the history
  • Loading branch information
TBlindaruk authored and taylorotwell committed Mar 17, 2018
1 parent 1f62d23 commit e36cacd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Illuminate/Foundation/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ public function detectEnvironment(Closure $callback)
*/
public function runningInConsole()
{
return php_sapi_name() == 'cli' || php_sapi_name() == 'phpdbg';
return php_sapi_name() === 'cli' || php_sapi_name() === 'phpdbg';
}

/**
Expand All @@ -533,7 +533,7 @@ public function runningInConsole()
*/
public function runningUnitTests()
{
return $this['env'] == 'testing';
return $this['env'] === 'testing';
}

/**
Expand Down

0 comments on commit e36cacd

Please sign in to comment.