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:
parent
297c0bbfcf
commit
adcc063242
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue