Фильтр номера телефона. Формат даты с миллисекундами

Обработчик кода товара в формате Data Matrix
This commit is contained in:
Антон Н. Николаев
2021-02-25 19:13:26 +03:00
parent 7f44d8068e
commit 08bb04b520
34 changed files with 842 additions and 152 deletions
+1 -1
View File
@@ -117,7 +117,7 @@ class ReceiptCustomer extends AbstractObject implements ReceiptCustomerInterface
} elseif (!TypeCast::canCastToString($value)) {
throw new InvalidPropertyValueTypeException('Invalid phone value type', 0, 'receipt.customer.phone');
} else {
$this->_phone = (string)$value;
$this->_phone = (string)preg_replace('/\D/', '', $value);
}
}