Skip to content

Commit

Permalink
Merge pull request #8 from plentymarkets/fix_disable_length_check
Browse files Browse the repository at this point in the history
Fix disable length check
  • Loading branch information
Joshua Schaak authored Aug 25, 2022
2 parents 32b4bd7 + df4bc6a commit fa5f093
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,9 @@ public function listInvalidProperties() : array
$invalidProperties[] = "'city' can't be null";
}

if ((\mb_strlen($this->container['city']) > 30)) {
$invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 30.";
}
// if ((\mb_strlen($this->container['city']) > 30)) {
// $invalidProperties[] = "invalid value for 'city', the character length must be smaller than or equal to 30.";
// }

// if (null !== $this->container['state_or_province_code'] && (\mb_strlen($this->container['state_or_province_code']) > 30)) {
// $invalidProperties[] = "invalid value for 'state_or_province_code', the character length must be smaller than or equal to 30.";
Expand Down Expand Up @@ -481,9 +481,9 @@ public function getCity() : string
*/
public function setCity(string $city) : self
{
if ((\mb_strlen($city) > 30)) {
throw new \InvalidArgumentException('invalid length for $city when calling Address., must be smaller than or equal to 30.');
}
// if ((\mb_strlen($city) > 30)) {
// throw new \InvalidArgumentException('invalid length for $city when calling Address., must be smaller than or equal to 30.');
// }

$this->container['city'] = $city;

Expand Down

0 comments on commit fa5f093

Please sign in to comment.