forked from LiveCarta/PayPal-PHP-SDK
Reverting class attribute usage to make it work with PHP 5.3
- Updated #171 to make it work with PHP 5.3 or lower
This commit is contained in:
@@ -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) == PPModel::class) {
|
if (get_class($class) == get_class(new PPModel())) {
|
||||||
// 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