Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CodeSniffer/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -1511,7 +1511,7 @@ private static function _createPositionMap(&$tokens, $tokenizer, $eolChar, $enco
// There are no tabs in this content, or we aren't replacing them.
if ($checkEncoding === true) {
// Not using the default encoding, so take a bit more care.
$length = iconv_strlen($tokens[$i]['content'], $encoding);
$length = @iconv_strlen($tokens[$i]['content'], $encoding);
if ($length === false) {
// String contained invalid characters, so revert to default.
$length = strlen($tokens[$i]['content']);
Expand Down