Skip to content

Commit ca8a99e

Browse files
committed
minor #60284 Unnecessary cast, return, semicolon and comma (wkania)
This PR was merged into the 6.4 branch. Discussion ---------- Unnecessary cast, return, semicolon and comma | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT isEqualTo always return null. Commits ------- 23cc764 Unnecessary cast, return, semicolon and comma
2 parents bfe2d66 + 23cc764 commit ca8a99e

File tree

4 files changed

+3
-4
lines changed

4 files changed

+3
-4
lines changed

src/Symfony/Bridge/Doctrine/Tests/ArgumentResolver/EntityValueResolverTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public function testResolveWithArrayIdNullValue()
153153
$request = new Request();
154154
$request->attributes->set('nullValue', null);
155155

156-
$argument = $this->createArgument(entity: new MapEntity(id: ['nullValue']), isNullable: true,);
156+
$argument = $this->createArgument(entity: new MapEntity(id: ['nullValue']), isNullable: true);
157157

158158
$this->assertSame([null], $resolver->resolve($request, $argument));
159159
}

src/Symfony/Component/Form/Tests/Extension/Core/DataTransformer/DateTimeToLocalizedStringTransformerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public function testReverseTransformFromDifferentLocale()
239239
{
240240
if (version_compare(Intl::getIcuVersion(), '71.1', '>')) {
241241
$this->markTestSkipped('ICU version 71.1 or lower is required.');
242-
};
242+
}
243243

244244
\Locale::setDefault('en_US');
245245

src/Symfony/Component/Notifier/Tests/Channel/AbstractChannelTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ class DummyChannel extends AbstractChannel
3434
{
3535
public function notify(Notification $notification, RecipientInterface $recipient, ?string $transportName = null): void
3636
{
37-
return;
3837
}
3938

4039
public function supports(Notification $notification, RecipientInterface $recipient): bool

src/Symfony/Component/Security/Http/Firewall/ContextListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ private static function hasUserChanged(UserInterface $originalUser, TokenInterfa
290290
$refreshedUser = $refreshedToken->getUser();
291291

292292
if ($originalUser instanceof EquatableInterface) {
293-
return !(bool) $originalUser->isEqualTo($refreshedUser);
293+
return !$originalUser->isEqualTo($refreshedUser);
294294
}
295295

296296
if ($originalUser instanceof PasswordAuthenticatedUserInterface || $refreshedUser instanceof PasswordAuthenticatedUserInterface) {

0 commit comments

Comments
 (0)