Skip to content

Commit 964d063

Browse files
author
Ethan Bray
committed
Fix bug with validation of category integer length.
1 parent 07dacc5 commit 964d063

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

classes/SMSMessage.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ public function binary($blBinary)
203203

204204
public function category($intCategory)
205205
{
206-
if (!(Validator::numeric()->notEmpty()->length(3)->validate($intCategory))) {
206+
if (!(Validator::numeric()->notEmpty()->length(3, 3)->validate($intCategory))) {
207207
$this->objLogger->addError('Category must be a numeric string with a length of 3.');
208208

209209
throw new SMSMessageException('Category must be a numeric string with a length of 3.');

0 commit comments

Comments
 (0)