@@ -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 ' , '. ' ];
@@ -79,7 +79,7 @@ public function testResolveUrl(string $base, string $url, string $expected)
7979 /**
8080 * From https://github.com/guzzle/psr7/blob/master/tests/UriResoverTest.php.
8181 */
82- public function provideResolveUrl (): array
82+ public static function provideResolveUrl (): array
8383 {
8484 return [
8585 [self ::RFC3986_BASE , 'http:h ' , 'http:h ' ],
@@ -167,7 +167,7 @@ public function testParseUrl(array $expected, string $url, array $query = [])
167167 $ this ->assertSame ($ expected , self ::parseUrl ($ url , $ query ));
168168 }
169169
170- public function provideParseUrl (): iterable
170+ public static function provideParseUrl (): iterable
171171 {
172172 yield [['http: ' , '//example.com ' , null , null , null ], 'http://Example.coM:80 ' ];
173173 yield [['https: ' , '//xn--dj-kia8a.example.com:8000 ' , '/ ' , null , null ], 'https://DÉjà.Example.com:8000/ ' ];
@@ -194,7 +194,7 @@ public function testRemoveDotSegments($expected, $url)
194194 $ this ->assertSame ($ expected , self ::removeDotSegments ($ url ));
195195 }
196196
197- public function provideRemoveDotSegments ()
197+ public static function provideRemoveDotSegments ()
198198 {
199199 yield ['' , '' ];
200200 yield ['' , '. ' ];
@@ -243,7 +243,7 @@ public function testSetJSONAndBodyOptions()
243243 self ::prepareRequest ('POST ' , 'http://example.com ' , ['json ' => ['foo ' => 'bar ' ], 'body ' => '<html/> ' ], HttpClientInterface::OPTIONS_DEFAULTS );
244244 }
245245
246- public function providePrepareAuthBasic ()
246+ public static function providePrepareAuthBasic ()
247247 {
248248 yield ['foo:bar ' , 'Zm9vOmJhcg== ' ];
249249 yield [['foo ' , 'bar ' ], 'Zm9vOmJhcg== ' ];
@@ -260,7 +260,7 @@ public function testPrepareAuthBasic($arg, $result)
260260 $ this ->assertSame ('Authorization: Basic ' .$ result , $ options ['normalized_headers ' ]['authorization ' ][0 ]);
261261 }
262262
263- public function provideFingerprints ()
263+ public static function provideFingerprints ()
264264 {
265265 foreach (['md5 ' , 'sha1 ' , 'sha256 ' ] as $ algo ) {
266266 $ hash = hash ($ algo , $ algo );
0 commit comments