Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bastihilger committed Oct 27, 2023
1 parent a8c83c2 commit e111020
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/PayPal/Cache/AuthorizationCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/PayPal/Core/PayPalHttpConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion lib/PayPal/Transport/PayPalRestCall.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e111020

Please sign in to comment.