mirror of
https://github.com/hauke68/Magallanes.git
synced 2026-09-03 03:38:57 +02:00
Boolean and Null should be compared strictly.
This commit is contained in:
@@ -47,7 +47,7 @@ class RollbackTask extends AbstractTask implements IsReleaseAware
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
if ($this->getConfig()->release('enabled', false) == true) {
|
||||
if ($this->getConfig()->release('enabled', false) === true) {
|
||||
$releasesDirectory = $this->getConfig()->release('directory', 'releases');
|
||||
$symlink = $this->getConfig()->release('symlink', 'current');
|
||||
|
||||
@@ -111,7 +111,7 @@ class RollbackTask extends AbstractTask implements IsReleaseAware
|
||||
$tasks++;
|
||||
$result = $task->run();
|
||||
|
||||
if ($result == true) {
|
||||
if ($result === true) {
|
||||
Console::output('<green>OK</green>', 0);
|
||||
$completedTasks++;
|
||||
} else {
|
||||
@@ -161,7 +161,7 @@ class RollbackTask extends AbstractTask implements IsReleaseAware
|
||||
$tasks++;
|
||||
$result = $task->run();
|
||||
|
||||
if ($result == true) {
|
||||
if ($result === true) {
|
||||
Console::output('<green>OK</green>', 0);
|
||||
$completedTasks++;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user