2.3.0
New sniff added: MoxioSniffs.PHP.DisallowUtf8EncodeDecode
. This sniff disallows calls to utf8_encode()
and utf8_decode()
. These functions can be considered misleading because they only convert to/from ISO-8859-1, and do not 'magically' detect the source/target encoding. Using iconv()
or mb_convert_encoding()
instead makes both character encodings that play a role in the conversion explicit.