From 2b4a38076118967c73c1af12ab08d84d174b3155 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Richard=20P=C3=A9rez?= Date: Tue, 11 Jun 2013 21:17:51 -0430 Subject: [PATCH] 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. --- lib/PayPal/Api/ItemList.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PayPal/Api/ItemList.php b/lib/PayPal/Api/ItemList.php index ea38da6..e71f3ae 100644 --- a/lib/PayPal/Api/ItemList.php +++ b/lib/PayPal/Api/ItemList.php @@ -9,7 +9,7 @@ class ItemList extends PPModel { * @array * @param PayPal\Api\Item $items */ - public function setItems($items) { + public function setItems(array $items) { $this->items = $items; return $this; }