Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrirussu committed Jun 15, 2024
2 parents 3263599 + 74c902d commit 7634748
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
"cmpayments/iban": "^1.1"
},
"require-dev": {
"phpunit/phpunit": "^8.3"
"phpunit/phpunit": "^8.3",
"ext-bcmath": "*",
"ext-mbstring": "*"
}
}
6 changes: 3 additions & 3 deletions src/PaymentInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ public function setCreditorSchemeIdentification($creditorSchemaId)
if (empty($creditorSchemaId) || is_null($creditorSchemaId)) {
throw new \Exception(ERROR_MSG_PM_CREDITOR_SCHEME_IDENTIFICATION);
}
$this->CreditorSchemeIdentification = $creditorSchemaId;
$this->creditorSchemeIdentification = $creditorSchemaId;
return $this;
}

Expand Down Expand Up @@ -943,8 +943,8 @@ protected function addCreditorFieldsToXml(\SimpleXMLElement $paymentInfo)
$privateIdentification = $creditorSchemeIdentificationID->addChild('PrvtId');
$othr = $privateIdentification->addChild('Othr');

if (!empty($this->CreditorSchemeIdentification)) {
$othr->addChild('Id', $this->CreditorSchemeIdentification);
if (!empty($this->creditorSchemeIdentification)) {
$othr->addChild('Id', $this->creditorSchemeIdentification);
}

$schemeName = $othr->addChild('SchmeNm');
Expand Down
2 changes: 1 addition & 1 deletion src/ValidationRules.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function checkStringLength($value, $length = 0)
* @return bool
* @throws \Exception
*/
public function validation($xmlSEPAFile = null, $xsdPainRule)
public function validation($xmlSEPAFile, $xsdPainRule)
{
if (empty($xmlSEPAFile) && !file_exists($xmlSEPAFile)) {
throw new \InvalidArgumentException('Missing SEPA XML File');
Expand Down

0 comments on commit 7634748

Please sign in to comment.