Skip to content

Commit

Permalink
Add void return value
Browse files Browse the repository at this point in the history
  • Loading branch information
fogelito committed Nov 10, 2024
1 parent c6ed011 commit 634c07a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Database/Validator/Index.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down Expand Up @@ -260,7 +260,7 @@ public function isValid($value): bool
return false;
}

if (!$this->checkIndexKeyName($value)) {
if (!$this->checkReservedNames($value)) {
return false;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/Adapter/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit 634c07a

Please sign in to comment.