1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-31 18:01:00 +01:00

Fix a PHP 8.1 string strictness issue in repositories

Summary: Ref T13588. This is a little too strict, as `$line` may be an integer.

Test Plan: Will deploy

Maniphest Tasks: T13588

Differential Revision: https://secure.phabricator.com/D21775
This commit is contained in:
epriestley 2022-04-25 12:27:42 -07:00
parent 297c0bbfcf
commit adcc063242

View file

@ -757,6 +757,7 @@ final class PhabricatorRepository extends PhabricatorRepositoryDAO
$commit = ';'.phutil_escape_uri($commit);
}
$line = phutil_string_cast($line);
if (phutil_nonempty_string($line)) {
$line = '$'.phutil_escape_uri($line);
}