Skip to content

Commit

Permalink
Deprecated passing string for 2nd argument of h().
Browse files Browse the repository at this point in the history
  • Loading branch information
ADmad committed Apr 29, 2018
1 parent 8ae48eb commit ae7059c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Core/functions.php
Expand Up @@ -64,6 +64,10 @@ function h($text, $double = true, $charset = null)
}
}
if (is_string($double)) {
deprecationWarning(
'Passing charset string for 2nd argument is deprecated. ' .
'Use the 3rd argument instead.'
);
$charset = $double;
}

Expand Down

0 comments on commit ae7059c

Please sign in to comment.