Skip to content

Commit

Permalink
Update Canonicalizer.php
Browse files Browse the repository at this point in the history
Fixed return value
  • Loading branch information
vlastv committed Apr 10, 2013
1 parent 3c95a7d commit 7521302
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Util/Canonicalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@ class Canonicalizer implements CanonicalizerInterface
{
public function canonicalize($string)
{
return null === $string ?: mb_convert_case($string, MB_CASE_LOWER, mb_detect_encoding($string));
return null === $string ? null : mb_convert_case($string, MB_CASE_LOWER, mb_detect_encoding($string));
}
}

0 comments on commit 7521302

Please sign in to comment.