Skip to content

Commit dc6ef20

Browse files
Fix null comparison
1 parent 639447d commit dc6ef20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Php72.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public static function mb_chr($code, $encoding = null)
191191

192192
public static function mb_ord($s, $encoding = null)
193193
{
194-
if (null == $encoding) {
194+
if (null === $encoding) {
195195
$s = mb_convert_encoding($s, 'UTF-8');
196196
} elseif ('UTF-8' !== $encoding) {
197197
$s = mb_convert_encoding($s, 'UTF-8', $encoding);

0 commit comments

Comments
 (0)