Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
"nunomaduro/collision": "^8.5",
"phpstan/phpstan": "^2.1",
"phpunit/phpunit": "^11.5.6",
"rector/rector": "^2.0",
"robiningelbrecht/phpunit-pretty-print": "^1.3",
"spatie/ray": "^1.28",
"symfony/http-client": "^7.2",
Expand Down
17 changes: 17 additions & 0 deletions rector.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

return RectorConfig::configure()
->withPaths([
__DIR__ . '/examples',
__DIR__ . '/src',
__DIR__ . '/tests',
])
// uncomment to reach your current PHP version
// ->withPhpSets()
->withTypeCoverageLevel(0)
->withDeadCodeLevel(0)
->withCodeQualityLevel(0);
10 changes: 5 additions & 5 deletions tests/Dense/Operations/RangeVectorsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function test_can_range_vectors(): void
$this->namespace->upsertMany($this->generateUpserts(100));
$this->waitForIndex($this->namespace);

$memory = $this->measureMemory(function () {
$memory = $this->measureMemory(function (): void {
// Act
$results = $this->namespace->range(new VectorRange(limit: 10));

Expand All @@ -57,7 +57,7 @@ public function test_can_range_vectors_with_next_helper(): void
$this->namespace->upsertMany($this->generateUpserts(100));
$this->waitForIndex($this->namespace);

$memory = $this->measureMemory(function () {
$memory = $this->measureMemory(function (): void {
// Act
$results = $this->namespace->range(new VectorRange(limit: 10));

Expand All @@ -81,7 +81,7 @@ public function test_can_range_vectors_using_next_cursor(): void
$this->namespace->upsertMany($this->generateUpserts(100));
$this->waitForIndex($this->namespace);

$memory = $this->measureMemory(function () {
$memory = $this->measureMemory(function (): void {
// Act
$results = $this->namespace->range(new VectorRange(limit: 10));

Expand All @@ -105,7 +105,7 @@ public function test_can_range_vectors_using_iterator(): void
$this->namespace->upsertMany($this->generateUpserts(100));
$this->waitForIndex($this->namespace);

$memory = $this->measureMemory(function () {
$memory = $this->measureMemory(function (): void {
// Arrange
$count = 0;

Expand Down Expand Up @@ -136,7 +136,7 @@ public function test_can_range_vectors_using_iterator_can_break_loop(): void
$this->namespace->upsertMany($this->generateUpserts(100));
$this->waitForIndex($this->namespace);

$memory = $this->measureMemory(function () {
$memory = $this->measureMemory(function (): void {
// Arrange
$count = 0;

Expand Down