1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 16:22:42 +01:00

Fix a PHP 8.1 issue in lint rendering

Summary: Ref T13588. The lint renderer has some "strlen(null)" issues; correct them.

Test Plan: Hit lint messages under PHP 8.1.

Reviewers: 0

Subscribers: jeremy.norris, vostok4, vhbit, jaydiablo, 0

Maniphest Tasks: T13588

Differential Revision: https://secure.phabricator.com/D21743
This commit is contained in:
epriestley 2021-12-11 11:16:43 -08:00
parent f0a2b699ba
commit 21c44d6bed

View file

@ -112,6 +112,8 @@ final class ArcanistConsoleLintRenderer extends ArcanistLintRenderer {
$message = $message->newTrimmedMessage(); $message = $message->newTrimmedMessage();
$original = $message->getOriginalText(); $original = $message->getOriginalText();
$original = phutil_string_cast($original);
$replacement = $message->getReplacementText(); $replacement = $message->getReplacementText();
$line = $message->getLine(); $line = $message->getLine();