Skip to content

Commit

Permalink
BackwardsCompatibilityBreak - fUTF8::detect() went from being public …
Browse files Browse the repository at this point in the history
…to private
wbond committed Apr 12, 2012

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent fa6be33 commit 45be4b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions classes/fUTF8.php
Original file line number Diff line number Diff line change
@@ -26,7 +26,6 @@ class fUTF8
const chr = 'fUTF8::chr';
const clean = 'fUTF8::clean';
const cmp = 'fUTF8::cmp';
const detect = 'fUTF8::detect';
const explode = 'fUTF8::explode';
const icmp = 'fUTF8::icmp';
const inatcmp = 'fUTF8::inatcmp';
@@ -736,7 +735,7 @@ static private function convertOffsetToBytes($string, $offset)
* @param string $string The string to check
* @return boolean If the string contains any non-ASCII characters
*/
static public function detect($string)
static private function detect($string)
{
return (boolean) preg_match('#[^\x00-\x7F]#', $string);
}

0 comments on commit 45be4b9

Please sign in to comment.