@@ -37,7 +37,7 @@ public function testPrepareRequestUrl(string $expected, string $url, array $quer
3737 $ this ->assertSame ($ expected , implode ('' , $ url ));
3838 }
3939
40- public function providePrepareRequestUrl (): iterable
40+ public static function providePrepareRequestUrl (): iterable
4141 {
4242 yield ['http://example.com/ ' , 'http://example.com/ ' ];
4343 yield ['http://example.com/?a=1&b=b ' , '. ' ];
@@ -60,7 +60,7 @@ public function testResolveUrl(string $base, string $url, string $expected)
6060 /**
6161 * From https://github.com/guzzle/psr7/blob/master/tests/UriResoverTest.php.
6262 */
63- public function provideResolveUrl (): array
63+ public static function provideResolveUrl (): array
6464 {
6565 return [
6666 [self ::RFC3986_BASE , 'http:h ' , 'http:h ' ],
@@ -148,7 +148,7 @@ public function testParseUrl(array $expected, string $url, array $query = [])
148148 $ this ->assertSame ($ expected , self ::parseUrl ($ url , $ query ));
149149 }
150150
151- public function provideParseUrl (): iterable
151+ public static function provideParseUrl (): iterable
152152 {
153153 yield [['http: ' , '//example.com ' , null , null , null ], 'http://Example.coM:80 ' ];
154154 yield [['https: ' , '//xn--dj-kia8a.example.com:8000 ' , '/ ' , null , null ], 'https://DÉjà.Example.com:8000/ ' ];
@@ -175,7 +175,7 @@ public function testRemoveDotSegments($expected, $url)
175175 $ this ->assertSame ($ expected , self ::removeDotSegments ($ url ));
176176 }
177177
178- public function provideRemoveDotSegments ()
178+ public static function provideRemoveDotSegments ()
179179 {
180180 yield ['' , '' ];
181181 yield ['' , '. ' ];
@@ -224,7 +224,7 @@ public function testSetJSONAndBodyOptions()
224224 self ::prepareRequest ('POST ' , 'http://example.com ' , ['json ' => ['foo ' => 'bar ' ], 'body ' => '<html/> ' ], HttpClientInterface::OPTIONS_DEFAULTS );
225225 }
226226
227- public function providePrepareAuthBasic ()
227+ public static function providePrepareAuthBasic ()
228228 {
229229 yield ['foo:bar ' , 'Zm9vOmJhcg== ' ];
230230 yield [['foo ' , 'bar ' ], 'Zm9vOmJhcg== ' ];
@@ -241,7 +241,7 @@ public function testPrepareAuthBasic($arg, $result)
241241 $ this ->assertSame ('Authorization: Basic ' .$ result , $ options ['normalized_headers ' ]['authorization ' ][0 ]);
242242 }
243243
244- public function provideFingerprints ()
244+ public static function provideFingerprints ()
245245 {
246246 foreach (['md5 ' , 'sha1 ' , 'sha256 ' ] as $ algo ) {
247247 $ hash = hash ($ algo , $ algo );
0 commit comments