Skip to content

Commit 86c8f17

Browse files
updated message
1 parent 6a197b5 commit 86c8f17

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/Database/Validator/Index.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public function checkIndexLength(Document $index): bool
199199
break;
200200
}
201201
if ($indexLength < 0) {
202-
$this->message = 'Negative index provided for '.$attributeName;
202+
$this->message = 'Negative index length provided for ' . $attributeName;
203203
return false;
204204
}
205205

tests/e2e/Adapter/Scopes/IndexTests.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ public function testIndexValidation(): void
255255
]),
256256
];
257257

258-
$errorMessage = 'Negative index provided for title1';
258+
$errorMessage = 'Negative index length provided for title1';
259259
$this->assertFalse($validator->isValid($indexes[0]));
260260
$this->assertEquals($errorMessage, $validator->getDescription());
261261

0 commit comments

Comments
 (0)