From bc47413c2afb0919e963b5f00a10477433ea7f3f Mon Sep 17 00:00:00 2001 From: japatel Date: Mon, 8 Dec 2014 17:46:26 -0600 Subject: [PATCH] Reverting class attribute usage to make it work with PHP 5.3 - Updated #171 to make it work with PHP 5.3 or lower --- lib/PayPal/Validation/ModelAccessorValidator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PayPal/Validation/ModelAccessorValidator.php b/lib/PayPal/Validation/ModelAccessorValidator.php index 45f412c..b0b73be 100644 --- a/lib/PayPal/Validation/ModelAccessorValidator.php +++ b/lib/PayPal/Validation/ModelAccessorValidator.php @@ -26,7 +26,7 @@ class ModelAccessorValidator if ($mode != 'disabled') { //If the mode is disabled, bypass the validation 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 return false; }