We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 76c3f84 commit 2d575a8Copy full SHA for 2d575a8
Form/DataTransformer/UserToUsernameTransformer.php
@@ -50,7 +50,7 @@ public function __construct(UserManagerInterface $userManager)
50
public function transform($value)
51
{
52
if (null === $value) {
53
- return null;
+ return;
54
}
55
56
if (!$value instanceof UserInterface) {
@@ -72,7 +72,7 @@ public function transform($value)
72
public function reverseTransform($value)
73
74
if (null === $value || '' === $value) {
75
76
77
78
if (!is_string($value)) {
Util/Canonicalizer.php
@@ -19,7 +19,7 @@ class Canonicalizer implements CanonicalizerInterface
19
public function canonicalize($string)
20
21
if (null === $string) {
22
23
24
25
$encoding = mb_detect_encoding($string);
0 commit comments