Skip to content

Commit 9f47fb1

Browse files
author
Tony DeStefano
authored
calculate() takes an optional array as a parameter.
When I pass in the array, I get a warning in my IDE since it's not defined in this class. So I updated the definition.
1 parent a233b8d commit 9f47fb1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Refund.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* --------------------------------------------------------------------------
1515
* Refund -> Custom actions
1616
* --------------------------------------------------------------------------
17-
* @method array calculate() Calculate a Refund.
17+
* @method array calculate(array $calculation = null) Calculate a Refund.
1818
*
1919
*/
2020
class Refund extends ShopifyResource
@@ -30,4 +30,4 @@ class Refund extends ShopifyResource
3030
protected $customPostActions = array (
3131
'calculate',
3232
);
33-
}
33+
}

0 commit comments

Comments
 (0)