Skip to content

Commit

Permalink
2.11.34
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitrii-fediuk committed Sep 10, 2017
1 parent 581c819 commit d5983ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions Payment/Source/Identification.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,11 @@ static function get(O $o) {
.'«Mage2.PRO» → «Payment» → «{%2}» → «Payment Identification Type» backend option.'
,$r, dfpm_title($o), $cause
);};
if (($maxLength = dfa($rules, 'max_length')) && strlen($r) > $maxLength) {
$error(__('a payment identifier should contain not more than %1 characters', $maxLength));
}
if (($maxLength = dfa($rules, 'max_length')) && $maxLength < ($length = strlen($r))) {
$error(__('a payment identifier should contain not more than %1 characters, but the current identifier contains %2 characters', $maxLength, $length));
}
/** @var array $matches */ /** @var array(string => string) $regex */
if (($regex = dfa($rules, 'regex')) && !(preg_match($regex['pattern'], $r, $matches))) {
if (($regex = dfa($rules, 'regex')) && !preg_match($regex['pattern'], $r, $matches)) {
$error(__($regex['message']));
}
/** @var int $maxInt */
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mage2pro/core"
,"version": "2.11.33"
,"version": "2.11.34"
,"description": "Mage2.PRO core package."
,"type": "magento2-module"
,"homepage": "https://mage2.pro"
Expand Down

0 comments on commit d5983ac

Please sign in to comment.