Skip to content
This repository was archived by the owner on Dec 2, 2021. It is now read-only.

Commit 1e450e1

Browse files
committed
Add missing type hints, fix method name
1 parent f9d3fcd commit 1e450e1

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Tests/Security/Authentication/RememberMe/RememberMeServicesDecoratorTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ protected function setUp(): void
4747
/**
4848
* @test
4949
*/
50-
public function loginSuccess_noATwoFactorToken_forwardCall()
50+
public function loginSuccess_noTwoFactorToken_forwardCall(): void
5151
{
5252
$token = $this->createMock(TokenInterface::class);
5353
$this->innerRememberMeServices
@@ -65,7 +65,7 @@ public function loginSuccess_noATwoFactorToken_forwardCall()
6565
/**
6666
* @test
6767
*/
68-
public function loginSuccess_isTwoFactorToken_setRememberMeAttribute()
68+
public function loginSuccess_isTwoFactorToken_setRememberMeAttribute(): void
6969
{
7070
$token = $this->createMock(TwoFactorTokenInterface::class);
7171

Tests/Security/TwoFactor/Provider/TwoFactorProviderPreparationRecorderTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected function setUp(): void
3333
/**
3434
* @test
3535
*/
36-
public function isProviderPrepared_providerIsNotPrepared_returnFalse()
36+
public function isProviderPrepared_providerIsNotPrepared_returnFalse(): void
3737
{
3838
$this->session
3939
->expects($this->once())
@@ -48,7 +48,7 @@ public function isProviderPrepared_providerIsNotPrepared_returnFalse()
4848
/**
4949
* @test
5050
*/
51-
public function isProviderPrepared_providerIsPrepared_returnTrue()
51+
public function isProviderPrepared_providerIsPrepared_returnTrue(): void
5252
{
5353
$this->session
5454
->expects($this->once())

Tests/Security/TwoFactor/Trusted/TrustedCookieResponseListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private function createRequestWithHost(string $host = 'example.org'): MockObject
7171
/**
7272
* @return MockObject|FilterResponseEvent|RequestEvent
7373
*/
74-
private function createEventWithRequest(MockObject $request)
74+
private function createEventWithRequest(MockObject $request): MockObject
7575
{
7676
// Symfony < 4.3
7777
if (!class_exists(RequestEvent::class)) {

0 commit comments

Comments
 (0)