Skip to content

Commit 90c9768

Browse files
author
Viktor Sevch
committed
MC-39886: Improve customer api
1 parent a5bb1b0 commit 90c9768

File tree

1 file changed

+2
-2
lines changed
  • app/code/Magento/Customer/Model/Validator

1 file changed

+2
-2
lines changed

app/code/Magento/Customer/Model/Validator/Name.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,10 @@ public function isValid($customer)
4141
/**
4242
* Check if name field is valid.
4343
*
44-
* @param string $nameValue
44+
* @param string|null $nameValue
4545
* @return bool
4646
*/
47-
private function isValidName(string $nameValue)
47+
private function isValidName($nameValue)
4848
{
4949
if ($nameValue != null) {
5050
$pattern = '/(?:[\p{L}\p{M}\,\-\.\'\s]){1,255}+/u';

0 commit comments

Comments
 (0)