Skip to content

Commit 9c11b4d

Browse files
committed
minor #39775 [WIP] Use ::class keyword when possible (fabpot)
This PR was merged into the 4.4 branch. Discussion ---------- [WIP] Use ::class keyword when possible | Q | A | ------------- | --- | Branch? | 4.4 <!-- see below --> | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Tickets | n/a <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead --> | License | MIT | Doc PR | n/a Commits ------- 036a36cb14 Use ::class keyword when possible
2 parents 4457d22 + 6201af1 commit 9c11b4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Tests/Security/User/EntityUserProviderTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
use Symfony\Bridge\Doctrine\Test\DoctrineTestHelper;
2222
use Symfony\Bridge\Doctrine\Tests\Fixtures\User;
2323
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
24+
use Symfony\Component\Security\Core\User\UserInterface;
2425

2526
class EntityUserProviderTest extends TestCase
2627
{
@@ -154,7 +155,7 @@ public function testLoadUserByUserNameShouldLoadUserWhenProperInterfaceProvided(
154155
->method('loadUserByUsername')
155156
->with('name')
156157
->willReturn(
157-
$this->getMockBuilder('\Symfony\Component\Security\Core\User\UserInterface')->getMock()
158+
$this->getMockBuilder(UserInterface::class)->getMock()
158159
);
159160

160161
$provider = new EntityUserProvider(

0 commit comments

Comments
 (0)