Skip to content

Commit

Permalink
Merge pull request #2 from DIGINEXtechnology/hotfix/environment-bool-…
Browse files Browse the repository at this point in the history
…parse

Fixed environment boolean parsing
  • Loading branch information
Damián Imrich authored Aug 9, 2017
2 parents 46ad8e7 + 1a11166 commit 9e1dd35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GoPaySDK.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function __construct()
'goid' => config('gopay.goid'),
'clientId' => config('gopay.clientId'),
'clientSecret' => config('gopay.clientSecret'),
'isProductionMode' => !getenv('APP_DEBUG'),
'isProductionMode' => !filter_var(getenv('APP_DEBUG'), FILTER_VALIDATE_BOOLEAN),
'timeout' => config('gopay.timeout')
];

Expand Down Expand Up @@ -138,4 +138,4 @@ public function log($closure)
$this->logsBefore = [];
return $this;
}
}
}

0 comments on commit 9e1dd35

Please sign in to comment.