Skip to content

Commit

Permalink
Update src/Illuminate/Validation/Concerns/ValidatesAttributes.php
Browse files Browse the repository at this point in the history
Co-authored-by: Mahmood Dehghani <[email protected]>
  • Loading branch information
Dipesh79 and imahmood authored Jan 2, 2024
1 parent a4b4be2 commit 1c22772
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Validation/Concerns/ValidatesAttributes.php
Original file line number Diff line number Diff line change
Expand Up @@ -2481,7 +2481,7 @@ public function validateLatitude($attribute, $value)
*/
public function validateLongitude($attribute, $value)
{
return preg_match('/^[-+]?([1-8]?\d(\.\d+)?|180(\.0+)?)$/', $value);
return preg_match('/^[-+]?([1-8]?\d(\.\d+)?|180(\.0+)?)$/', $value) === 1;
}

/**
Expand Down

0 comments on commit 1c22772

Please sign in to comment.