Skip to content

Commit a8d5b89

Browse files
committed
coding style: cs-fixer is_null() rule
1 parent 7f59506 commit a8d5b89

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Helpers/html_helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function script_tag($src = '', bool $indexPage = false): string
208208
}
209209
} else {
210210
// for attributes without values, like async or defer, use NULL.
211-
$script .= $k . (is_null($v) ? ' ' : '="' . $v . '" ');
211+
$script .= $k . (null === $v ? ' ' : '="' . $v . '" ');
212212
}
213213
}
214214

0 commit comments

Comments
 (0)