We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ca44f1 commit 4d230d2Copy full SHA for 4d230d2
src/Omnipay/Common/Message/AbstractRequest.php
@@ -115,11 +115,11 @@ public function setTestMode($value)
115
* This method is called internally by gateways to avoid wasting time with an API call
116
* when the request is clearly invalid.
117
*
118
- * @param array an array of required parameters
+ * @param string a variable length list of required parameters
119
*/
120
- public function validate(array $required)
+ public function validate()
121
{
122
- foreach ($required as $key) {
+ foreach (func_get_args() as $key) {
123
$value = $this->parameters->get($key);
124
if (empty($value)) {
125
throw new InvalidRequestException("The $key parameter is required");
0 commit comments