forked from LiveCarta/PayPal-PHP-SDK
Add Type Hiting 'array' to method setItems to avoid receive a non array parameter which cause a validation errors when Payment 'created' function is executed.
This commit is contained in:
@@ -9,7 +9,7 @@ class ItemList extends PPModel {
|
|||||||
* @array
|
* @array
|
||||||
* @param PayPal\Api\Item $items
|
* @param PayPal\Api\Item $items
|
||||||
*/
|
*/
|
||||||
public function setItems($items) {
|
public function setItems(array $items) {
|
||||||
$this->items = $items;
|
$this->items = $items;
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user