File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/Symfony/Component/Security/Http/Tests/Authenticator/Passport/Badge Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 17
17
use Symfony \Component \Security \Http \Authenticator \Passport \Badge \UserBadge ;
18
18
use Symfony \Component \String \Slugger \AsciiSlugger ;
19
19
use Symfony \Component \String \UnicodeString ;
20
+
20
21
use function Symfony \Component \String \u ;
21
22
22
23
class UserBadgeTest extends TestCase
@@ -61,7 +62,7 @@ public static function provideUserIdentifierNormalizationData(): iterable
61
62
$ asciiWithPrefix = static fn (string $ identifier ) => u ($ slugger ->slug ($ identifier ))->ascii ()->lower ()->prepend ('USERID-- ' )->toString ();
62
63
yield 'Username with prefix ' => ['John Doe 1 ' , 'USERID--john-doe-1 ' , $ asciiWithPrefix ];
63
64
64
- if (!extension_loaded ('intl ' )) {
65
+ if (!\ extension_loaded ('intl ' )) {
65
66
return ;
66
67
}
67
68
$ upperAndAscii = fn (string $ identifier ) => u ($ identifier )->ascii ()->upper ()->toString ();
You can’t perform that action at this time.
0 commit comments