mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-04 08:28:57 +02:00
Boolean and Null should be compared strictly.
This commit is contained in:
+2
-2
@@ -131,7 +131,7 @@ class Console
|
||||
$command = Factory::get($commandName, $config);
|
||||
|
||||
if ($command instanceOf RequiresEnvironment) {
|
||||
if ($config->getEnvironment() == false) {
|
||||
if ($config->getEnvironment() === false) {
|
||||
throw new Exception('You must specify an environment for this command.');
|
||||
}
|
||||
}
|
||||
@@ -222,7 +222,7 @@ class Console
|
||||
public static function log($message)
|
||||
{
|
||||
if (self::$logEnabled) {
|
||||
if (self::$log == null) {
|
||||
if (self::$log === null) {
|
||||
self::$logFile = realpath(getcwd() . '/.mage/logs') . '/log-' . date('Ymd-His') . '.log';
|
||||
self::$log = fopen(self::$logFile, 'w');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user