Skip to content

Commit a469490

Browse files
committed
fixing tests
1 parent 2f7840c commit a469490

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Schema.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,12 +190,12 @@ private function process($data, $import = true, $path = '#')
190190

191191
if (is_string($data)) {
192192
if ($this->minLength !== null) {
193-
if (mb_strlen($data) < $this->minLength) {
193+
if (mb_strlen($data, 'UTF-8') < $this->minLength) {
194194
$this->fail(new StringException('String is too short', StringException::TOO_SHORT), $path);
195195
}
196196
}
197197
if ($this->maxLength !== null) {
198-
if (mb_strlen($data) > $this->maxLength) {
198+
if (mb_strlen($data, 'UTF-8') > $this->maxLength) {
199199
$this->fail(new StringException('String is too long', StringException::TOO_LONG), $path);
200200
}
201201
}

0 commit comments

Comments
 (0)