forked from LiveCarta/PayPal-PHP-SDK
Fixed Unit Tests
- Skipping tests till run in separate process if fixed - Making array objects to be compatible with older versions of php
This commit is contained in:
@@ -76,10 +76,10 @@ class PPConfigManager
|
||||
* then the element from the first array will be used and
|
||||
* the matching key's element from the second array will be ignored.
|
||||
*
|
||||
* @param [] $config
|
||||
* @param array $configs
|
||||
* @return $this
|
||||
*/
|
||||
public function addConfigs($configs = [])
|
||||
public function addConfigs($configs = array())
|
||||
{
|
||||
$this->configs = $configs + $this->configs;
|
||||
return $this;
|
||||
|
||||
@@ -69,7 +69,7 @@ class PPCredentialManager
|
||||
/**
|
||||
* Load credentials for multiple accounts, with priority given to Signature credential.
|
||||
*
|
||||
* @param [] $config
|
||||
* @param array $config
|
||||
*/
|
||||
private function initCredential($config)
|
||||
{
|
||||
|
||||
@@ -119,7 +119,7 @@ class PPHttpConfig
|
||||
*
|
||||
* @param array $headers
|
||||
*/
|
||||
public function setHeaders(array $headers = [])
|
||||
public function setHeaders(array $headers = array())
|
||||
{
|
||||
$this->headers = $headers;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user