Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantinKuklin committed Apr 7, 2018
1 parent f35c376 commit cfe5873
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Stream/ReceiveMethod/AbstractMethod.php
Expand Up @@ -6,7 +6,7 @@
namespace Stream\ReceiveMethod;

use Respect\Validation\Validator as v;
use Stream\Exceptions\StreamException;
use Stream\Exception\StreamException;

abstract class AbstractMethod implements MethodInterface
{
Expand All @@ -17,11 +17,11 @@ abstract class AbstractMethod implements MethodInterface
* @param bool $inclusive
*
* @return bool
* @throws \Stream\Exceptions\StreamException
* @throws \Stream\Exception\StreamException
*/
protected function validateInt($value, $min = null, $max = null, $inclusive = false)
{
if (!v::int()->between($min, $max, $inclusive)->validate($value)) {
if (!v::intVal()->between($min, $max, $inclusive)->validate($value)) {
throw new StreamException(
sprintf(
"The value must be Int with min value:'%s', max value:'%s'.(Inclusive:'%s'). But got %s with value %s.",
Expand All @@ -37,4 +37,4 @@ protected function validateInt($value, $min = null, $max = null, $inclusive = fa
return true;
}

}
}

0 comments on commit cfe5873

Please sign in to comment.