@@ -48,7 +48,7 @@ public function testSupport($request)
4848 $ this ->assertTrue ($ this ->authenticator ->supports ($ request ));
4949 }
5050
51- public function provideSupportData ()
51+ public static function provideSupportData ()
5252 {
5353 yield [new Request ([], [], [], [], [], ['HTTP_CONTENT_TYPE ' => 'application/json ' ], '{"username": "dunglas", "password": "foo"} ' )];
5454
@@ -67,7 +67,7 @@ public function testSupportsWithCheckPath($request, $result)
6767 $ this ->assertSame ($ result , $ this ->authenticator ->supports ($ request ));
6868 }
6969
70- public function provideSupportsWithCheckPathData ()
70+ public static function provideSupportsWithCheckPathData ()
7171 {
7272 yield [Request::create ('/api/login ' , 'GET ' , [], [], [], ['HTTP_CONTENT_TYPE ' => 'application/json ' ]), true ];
7373 yield [Request::create ('/login ' , 'GET ' , [], [], [], ['HTTP_CONTENT_TYPE ' => 'application/json ' ]), false ];
@@ -107,7 +107,7 @@ public function testAuthenticateInvalid($request, $errorMessage, $exceptionType
107107 $ this ->authenticator ->authenticate ($ request );
108108 }
109109
110- public function provideInvalidAuthenticateData ()
110+ public static function provideInvalidAuthenticateData ()
111111 {
112112 $ request = new Request ([], [], [], [], [], ['HTTP_CONTENT_TYPE ' => 'application/json ' ]);
113113 yield [$ request , 'Invalid JSON. ' ];
0 commit comments