Skip to content

Commit 2057444

Browse files
committed
[make:reset-password] doctrine/annotations are not needed
1 parent 1ee6fdf commit 2057444

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/Maker/MakeResetPassword.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,6 @@ public function configureDependencies(DependencyBuilder $dependencies): void
122122

123123
ORMDependencyBuilder::buildDependencies($dependencies);
124124

125-
$dependencies->addClassDependency(Annotation::class, 'annotations');
126-
127125
// reset-password-bundle 1.6 includes the ability to generate a fake token.
128126
// we need to check that version 1.6 is installed
129127
if (class_exists(ResetPasswordHelper::class) && !method_exists(ResetPasswordHelper::class, 'generateFakeResetToken')) {

tests/fixtures/make-reset-password/tests/it_generates_with_normal_setup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,23 +6,23 @@
66

77
class ResetPasswordFunctionalTest extends WebTestCase
88
{
9-
public function testResetRequestRoute()
9+
public function testResetRequestRoute(): void
1010
{
1111
$client = static::createClient();
1212
$client->request('GET', '/reset-password');
1313

1414
self::assertSame(200, $client->getResponse()->getStatusCode());
1515
}
1616

17-
public function testResetRequestRouteDeniesInvalidToken()
17+
public function testResetRequestRouteDeniesInvalidToken(): void
1818
{
1919
$client = static::createClient();
2020
$client->request('GET', '/reset-password/reset/badToken1234');
2121

2222
self::assertSame(302, $client->getResponse()->getStatusCode());
2323
}
2424

25-
public function testCheckEmailPageIsAlwaysAccessible()
25+
public function testCheckEmailPageIsAlwaysAccessible(): void
2626
{
2727
$client = static::createClient();
2828
$client->request('GET', '/reset-password/check-email');

0 commit comments

Comments
 (0)