Skip to content

Commit 6dce95e

Browse files
committed
Changed to bool and strict comparison done
1 parent a9b69a7 commit 6dce95e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Paypal/Model/SdkUrl.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,10 @@ private function getDisallowedFunding()
212212
*/
213213
private function getAllowedFunding(): string
214214
{
215-
$payLaterActive = (boolean)$this->config->getPayLaterConfigValue('experience_active');
215+
$payLaterActive = (bool)$this->config->getPayLaterConfigValue('experience_active');
216216

217217
// If Pay Later is enabled, then only paylater parameter will go in enable-funding parameter list
218-
if ($payLaterActive == false) {
218+
if ($payLaterActive === false) {
219219
unset($this->supportedPaymentMethods['paylater']);
220220
}
221221
return implode(',', $this->supportedPaymentMethods);

0 commit comments

Comments
 (0)