1 | <?php |
||
8 | class CreateBasketRequest extends AbstractRequest |
||
9 | { |
||
10 | /** |
||
11 | * @return array |
||
12 | * @throws \Omnipay\Common\Exception\InvalidRequestException |
||
13 | */ |
||
14 | public function getData() |
||
36 | |||
37 | /** |
||
38 | * @return array |
||
39 | */ |
||
40 | public function getItemsData() |
||
58 | |||
59 | |||
60 | /** |
||
61 | * @return string |
||
62 | */ |
||
63 | public function getTaxAmount() |
||
67 | |||
68 | /** |
||
69 | * @param $value |
||
70 | * @return CreateBasketRequest |
||
71 | */ |
||
72 | public function setTaxAmount($value) |
||
76 | |||
77 | /** |
||
78 | * @return string |
||
79 | */ |
||
80 | public function getDiscount() |
||
84 | |||
85 | /** |
||
86 | * @param $value |
||
87 | * @return CreateBasketRequest |
||
88 | */ |
||
89 | public function setDiscount($value) |
||
93 | |||
94 | /** |
||
95 | * @return string |
||
96 | */ |
||
97 | public function getEndpoint() |
||
101 | } |
||
102 |
There are different options of fixing this problem.
If you want to be on the safe side, you can add an additional type-check:
If you are sure that the expression is traversable, you might want to add a doc comment cast to improve IDE auto-completion and static analysis:
Mark the issue as a false-positive: Just hover the remove button, in the top-right corner of this issue for more options.