If I use `arc lint` in PHP 8.2 this exception is thrown:
```
name=arc lint
[2023-03-24 13:33:28] EXCEPTION: (RuntimeException) Function utf8_decode() is deprecated at [<arcanist>/src/error/PhutilErrorHandler.php:261]
arcanist(head=arcpatch-D25049_1, ref.master=9e1bb955fac9, ref.arcpatch-D25049_1=d5dc36d4024c)
#0 PhutilErrorHandler::handleError(integer, string, string, integer) called at [<arcanist>/src/utils/utf8.php:292]
#1 phutil_utf8_strlen(string) called at [<arcanist>/src/parser/argument/PhutilArgumentSpellingCorrector.php:158]
#2 PhutilArgumentSpellingCorrector::correctSpelling(string, array) called at [<arcanist>/src/parser/argument/PhutilArgumentParser.php:437]
#3 PhutilArgumentParser::parseWorkflowsFull(array) called at [<arcanist>/src/runtime/ArcanistRuntime.php:171]
#4 ArcanistRuntime::executeCore(array) called at [<arcanist>/src/runtime/ArcanistRuntime.php:37]
#5 ArcanistRuntime::execute(array) called at [<arcanist>/support/init/init-arcanist.php:6]
#6 require_once(string) called at [<arcanist>/bin/arc:10]
```
To fix all the results, there is an automatic Rector.php rule name:
```
Rector\Php82\Rector\FuncCall\Utf8DecodeEncodeToMbConvertEncodingRector
```
https://github.com/rectorphp/rector/blob/main/docs/rector_rules_overview.md#utf8decodeencodetombconvertencodingrector
https://wiki.php.net/rfc/remove_utf8_decode_and_utf8_encode
https://www.php.net/manual/en/function.mb-convert-encoding.php
In short, it seems the exact replacement should be:
```lang=diff
-utf8_decode($string)
+mb_convert_encoding($string, 'ISO-8859-1')
```