forked from LiveCarta/PayPal-PHP-SDK
@@ -26,7 +26,7 @@ class ModelAccessorValidator
|
|||||||
if ($mode != 'disabled') {
|
if ($mode != 'disabled') {
|
||||||
//If the mode is disabled, bypass the validation
|
//If the mode is disabled, bypass the validation
|
||||||
foreach (array('set' . $attributeName, 'get' . $attributeName) as $methodName) {
|
foreach (array('set' . $attributeName, 'get' . $attributeName) as $methodName) {
|
||||||
if (get_class($class) == "PayPal\\Common\\PPModel") {
|
if (get_class($class) == PPModel::class) {
|
||||||
// Silently return false on cases where you are using PPModel instance directly
|
// Silently return false on cases where you are using PPModel instance directly
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user