diff --git a/src/Database/Validator/Index.php b/src/Database/Validator/Index.php index 59a8958d9..a6726b455 100644 --- a/src/Database/Validator/Index.php +++ b/src/Database/Validator/Index.php @@ -215,7 +215,7 @@ public function checkIndexLength(Document $index): bool * @param Document $index * @return bool */ - public function checkIndexKeyName(Document $index): bool + public function checkReservedNames(Document $index): bool { $key = \strtolower($index->getAttribute('key', $index->getAttribute('$id'))); if ($key === 'primary') { @@ -260,7 +260,7 @@ public function isValid($value): bool return false; } - if (!$this->checkIndexKeyName($value)) { + if (!$this->checkReservedNames($value)) { return false; } diff --git a/tests/e2e/Adapter/Base.php b/tests/e2e/Adapter/Base.php index b458f33db..c45206645 100644 --- a/tests/e2e/Adapter/Base.php +++ b/tests/e2e/Adapter/Base.php @@ -1097,7 +1097,7 @@ public function testCreateListExistsDeleteCollection(): void $this->assertEquals(false, static::getDatabase()->exists($this->testDatabase, 'actors')); } - public function testCreateIndex() + public function testCreateIndex():void { $database = $this->getDatabase();