From 6de7408bbed6cf907f1cc89055a51b0bac976055 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Tamarelle?= Date: Fri, 13 Sep 2024 23:25:28 +0200 Subject: [PATCH] Fix GridFS providers --- tests/GridFS/BucketFunctionalTest.php | 4 ++-- tests/TestCase.php | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/GridFS/BucketFunctionalTest.php b/tests/GridFS/BucketFunctionalTest.php index 1afaca069..0e559d22d 100644 --- a/tests/GridFS/BucketFunctionalTest.php +++ b/tests/GridFS/BucketFunctionalTest.php @@ -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()); } @@ -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')]; } diff --git a/tests/TestCase.php b/tests/TestCase.php index 0b5b0ba1b..1d965606d 100644 --- a/tests/TestCase.php +++ b/tests/TestCase.php @@ -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()); }