@@ -640,7 +640,7 @@ private static function getValFromMultiDimInput(array &$input, $keys)
640
640
*
641
641
* @param string $field Valid fields are: 'orgnlcdtrschmeid_id','ci','msgid','pmtid','pmtinfid',
642
642
* 'orgnlmndtid','mndtid','initgpty','cdtr','dbtr','orgnlcdtrschmeid_nm',
643
- * 'ultmtcdrt','ultmtdebtr ','rmtinf','orgnldbtracct_iban','iban','bic',
643
+ * 'ultmtcdrt','ultmtdbtr ','rmtinf','orgnldbtracct_iban','iban','bic',
644
644
* 'ccy','amendment', 'btchbookg','instdamt','seqtp','lclinstrm',
645
645
* 'elctrncsgntr','reqdexctndt','purp','ctgypurp','orgnldbtragt', 'adrline'
646
646
* 'ctry', 'dbtrpstladr'
@@ -863,7 +863,7 @@ public static function sanitizeText(int $length, string $input, bool $allowEmpty
863
863
/**
864
864
* Tries to sanitize the the input so it fits in the field.
865
865
*
866
- * @param string $field Valid fields are: 'ultmtcdrt', 'ultmtdebtr ',
866
+ * @param string $field Valid fields are: 'ultmtcdrt', 'ultmtdbtr ',
867
867
* 'orgnlcdtrschmeid_nm', 'initgpty', 'cdtr', 'dbtr', 'rmtinf', 'adrline'
868
868
* @param mixed $input
869
869
* @param int $flags Flags used in replaceSpecialChars()
@@ -879,7 +879,8 @@ public static function sanitize(string $field, $input, int $flags = 0)
879
879
return self ::sanitizeText (self ::TEXT_LENGTH_VERY_SHORT , $ input , true , $ flags );
880
880
case 'adrline ' :
881
881
case 'ultmtcdrt ' :
882
- case 'ultmtdebtr ' :
882
+ case 'ultmtdbtr ' :
883
+ case 'ultmtdebtr ' : // deprecated, just here for backwards compatibility
883
884
return self ::sanitizeText (self ::TEXT_LENGTH_SHORT , $ input , true , $ flags );
884
885
case 'orgnlcdtrschmeid_nm ' :
885
886
case 'initgpty ' :
@@ -902,7 +903,7 @@ public static function checkRequiredCollectionKeys(array $inputs, int $version)
902
903
break ;
903
904
case self ::SEPA_PAIN_001_001_03 :
904
905
case self ::SEPA_PAIN_001_001_03_GBIC :
905
- case self ::SEPA_PAIN_001_001_03_CH_02 :
906
+ case self ::SEPA_PAIN_001_001_03_CH_02 :
906
907
case self ::SEPA_PAIN_001_003_03 :
907
908
$ requiredKeys = ['pmtInfId ' , 'dbtr ' , 'iban ' ];
908
909
break ;
@@ -933,7 +934,7 @@ public static function checkRequiredPaymentKeys(array $inputs, int $version)
933
934
break ;
934
935
case self ::SEPA_PAIN_001_001_03 :
935
936
case self ::SEPA_PAIN_001_001_03_GBIC :
936
- case self ::SEPA_PAIN_001_001_03_CH_02 :
937
+ case self ::SEPA_PAIN_001_001_03_CH_02 :
937
938
case self ::SEPA_PAIN_001_003_03 :
938
939
$ requiredKeys = ['pmtId ' , 'instdAmt ' , 'iban ' , 'cdtr ' ];
939
940
break ;
0 commit comments