diff --git a/lib/PayPal/Cache/AuthorizationCache.php b/lib/PayPal/Cache/AuthorizationCache.php index 83910d3b..6661c9b9 100644 --- a/lib/PayPal/Cache/AuthorizationCache.php +++ b/lib/PayPal/Cache/AuthorizationCache.php @@ -53,7 +53,7 @@ public static function pull($config = null, $clientId = null) * @param $tokenExpiresIn * @throws \Exception */ - public static function push($config = null, $clientId, $accessToken, $tokenCreateTime, $tokenExpiresIn) + public static function push($config = null, $clientId = '', $accessToken = '', $tokenCreateTime = '', $tokenExpiresIn = '') { // Return if not enabled if (!self::isEnabled($config)) { diff --git a/lib/PayPal/Core/PayPalHttpConfig.php b/lib/PayPal/Core/PayPalHttpConfig.php index 8e431b30..5db51cf0 100644 --- a/lib/PayPal/Core/PayPalHttpConfig.php +++ b/lib/PayPal/Core/PayPalHttpConfig.php @@ -283,7 +283,7 @@ public function setUserAgent($userAgentString) * @param $prefix * @return array */ - public function getHttpConstantsFromConfigs($configs = array(), $prefix) + public function getHttpConstantsFromConfigs($configs = array(), $prefix = '') { $arr = array(); if ($prefix != null && is_array($configs)) { diff --git a/lib/PayPal/Transport/PayPalRestCall.php b/lib/PayPal/Transport/PayPalRestCall.php index a5059591..91fdf126 100644 --- a/lib/PayPal/Transport/PayPalRestCall.php +++ b/lib/PayPal/Transport/PayPalRestCall.php @@ -50,7 +50,7 @@ public function __construct(ApiContext $apiContext) * @return mixed * @throws \PayPal\Exception\PayPalConnectionException */ - public function execute($handlers = array(), $path, $method, $data = '', $headers = array()) + public function execute($handlers = array(), $path = '/', $method = 'POST', $data = '', $headers = array()) { $config = $this->apiContext->getConfig(); $httpConfig = new PayPalHttpConfig(null, $method, $config);