Skip to content

Commit

Permalink
Fix GridFS providers
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Sep 13, 2024
1 parent 1a5e2dc commit 6de7408
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tests/GridFS/BucketFunctionalTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ public function testDownloadToStreamShouldRequireDestinationStream($destination)
$this->bucket->downloadToStream('id', $destination);
}

public static function provideInvalidStreamValues()
public static function provideInvalidStreamValues(): array
{
return self::wrapValuesForDataProvider(self::getInvalidStreamValues());
}
Expand Down Expand Up @@ -1029,7 +1029,7 @@ private function assertIndexNotExists(string $collectionName, string $indexName)
/**
* Return a list of invalid stream values.
*/
private function getInvalidStreamValues(): array
private static function getInvalidStreamValues(): array
{
return [null, 123, 'foo', [], hash_init('md5')];
}
Expand Down
8 changes: 4 additions & 4 deletions tests/TestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,22 +140,22 @@ public function dataDescription(): string
return is_string($dataName) ? $dataName : '';
}

final public function provideInvalidArrayValues(): array
final public static function provideInvalidArrayValues(): array
{
return self::wrapValuesForDataProvider(self::getInvalidArrayValues());
}

final public function provideInvalidDocumentValues(): array
final public static function provideInvalidDocumentValues(): array
{
return self::wrapValuesForDataProvider(self::getInvalidDocumentValues());
}

final public function provideInvalidIntegerValues(): array
final public static function provideInvalidIntegerValues(): array
{
return self::wrapValuesForDataProvider(self::getInvalidIntegerValues());
}

final public function provideInvalidStringValues(): array
final public static function provideInvalidStringValues(): array
{
return self::wrapValuesForDataProvider(self::getInvalidStringValues());
}
Expand Down

0 comments on commit 6de7408

Please sign in to comment.