Skip to content

Commit e208cd4

Browse files
author
roadiz-ci
committed
Merge tag v2.7.0 into develop
1 parent 5056a0d commit e208cd4

7 files changed

Lines changed: 16 additions & 18 deletions

File tree

composer.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,21 @@
2222
"php": ">=8.3",
2323
"api-platform/symfony": "^4.1.18",
2424
"doctrine/orm": "~2.20.0",
25-
"roadiz/core-bundle": "2.7.x-dev",
26-
"roadiz/models": "2.7.x-dev",
25+
"roadiz/core-bundle": "2.7.*",
26+
"roadiz/models": "2.7.*",
2727
"symfony/framework-bundle": "7.4.*",
2828
"symfony/lock": "7.4.*",
2929
"symfony/rate-limiter": "7.4.*"
3030
},
3131
"require-dev": {
3232
"php-coveralls/php-coveralls": "^2.4",
33-
"phpstan/phpstan": "^1.5.3",
33+
"phpstan/phpstan": "^2.1.36",
3434
"phpstan/phpdoc-parser": "<2",
35-
"phpstan/phpstan-doctrine": "^1.3",
36-
"roadiz/doc-generator": "2.7.x-dev",
37-
"roadiz/entity-generator": "2.7.x-dev",
38-
"roadiz/jwt": "2.7.x-dev",
39-
"roadiz/random": "2.7.x-dev"
35+
"phpstan/phpstan-doctrine": "^2.0.13",
36+
"roadiz/doc-generator": "2.7.*",
37+
"roadiz/entity-generator": "2.7.*",
38+
"roadiz/jwt": "2.7.*",
39+
"roadiz/random": "2.7.*"
4040
},
4141
"config": {
4242
"optimize-autoloader": true,
@@ -58,8 +58,8 @@
5858
},
5959
"extra": {
6060
"branch-alias": {
61-
"dev-main": "2.6.x-dev",
62-
"dev-develop": "2.7.x-dev"
61+
"dev-main": "2.7.x-dev",
62+
"dev-develop": "2.8.x-dev"
6363
}
6464
}
6565
}

src/Entity/UserValidationToken.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@
1010
use Symfony\Component\Security\Core\User\UserInterface;
1111
use Symfony\Component\Validator\Constraints as Assert;
1212

13-
#[
14-
ORM\Table(name: 'user_validation_tokens'),
13+
#[ORM\Table(name: 'user_validation_tokens'),
1514
UniqueEntity('token'),
16-
ORM\Entity(repositoryClass: UserValidationTokenRepository::class)
17-
]
15+
ORM\Entity(repositoryClass: UserValidationTokenRepository::class)]
1816
class UserValidationToken
1917
{
2018
#[ORM\Column(name: 'id', type: 'integer')]

src/Manager/UserValidationTokenManager.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ private function sendUserValidationEmail(UserValidationToken $userValidationToke
7171
{
7272
$user = $userValidationToken->getUser();
7373

74-
if (!($user instanceof User)) {
74+
if (!$user instanceof User) {
7575
return;
7676
}
7777

src/Notifier/UserPasswordRequestNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getChannels(RecipientInterface $recipient): array
3030
}
3131

3232
#[\Override]
33-
public function asEmailMessage(EmailRecipientInterface $recipient, ?string $transport = null): ?EmailMessage
33+
public function asEmailMessage(EmailRecipientInterface $recipient, ?string $transport = null): EmailMessage
3434
{
3535
$email = new NotificationEmail();
3636
$email

src/Notifier/ValidateUserNotification.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function getChannels(RecipientInterface $recipient): array
3030
}
3131

3232
#[\Override]
33-
public function asEmailMessage(EmailRecipientInterface $recipient, ?string $transport = null): ?EmailMessage
33+
public function asEmailMessage(EmailRecipientInterface $recipient, ?string $transport = null): EmailMessage
3434
{
3535
$email = new NotificationEmail();
3636
$email

src/State/UserValidationTokenProcessor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function process($data, Operation $operation, array $uriVariables = [], a
5555
throw new AccessDeniedHttpException('Token does not belong to current account');
5656
}
5757

58-
if (!($user instanceof User)) {
58+
if (!$user instanceof User) {
5959
throw new UnprocessableEntityHttpException('User is not a valid user.');
6060
}
6161

0 commit comments

Comments
 (0)