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:
@@ -27,8 +27,8 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
if ($this->getConfig()->release('enabled', false) == true) {
|
||||
if ($this->getConfig()->getParameter('overrideRelease', false) == true) {
|
||||
if ($this->getConfig()->release('enabled', false) === true) {
|
||||
if ($this->getConfig()->getParameter('overrideRelease', false) === true) {
|
||||
return 'Deploy via TarGz (with Releases override) [built-in]';
|
||||
} else {
|
||||
return 'Deploy via TarGz (with Releases) [built-in]';
|
||||
@@ -50,7 +50,7 @@ class TarGzTask extends BaseStrategyTaskAbstract implements IsReleaseAware
|
||||
|
||||
// If we are working with releases
|
||||
$deployToDirectory = $this->getConfig()->deployment('to');
|
||||
if ($this->getConfig()->release('enabled', false) == true) {
|
||||
if ($this->getConfig()->release('enabled', false) === true) {
|
||||
$releasesDirectory = $this->getConfig()->release('directory', 'releases');
|
||||
$deployToDirectory = rtrim($this->getConfig()->deployment('to'), '/')
|
||||
. '/' . $releasesDirectory
|
||||
|
||||
Reference in New Issue
Block a user