mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 06:42:41 +01:00
Straggling fixes for PhutilURI under PHP 8.1
Summary: Ref T13588. Additional PhutilURI fixes for PHP 8.1. Test Plan: Ran "arc unit --everything" in Phabricator. Maniphest Tasks: T13588 Differential Revision: https://secure.phabricator.com/D21822
This commit is contained in:
parent
3cc486d5c1
commit
942b54a697
1 changed files with 2 additions and 2 deletions
|
@ -194,7 +194,7 @@ final class PhutilURI extends Phobject {
|
||||||
$query = null;
|
$query = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strlen($this->getFragment())) {
|
if (phutil_nonempty_string($this->getFragment())) {
|
||||||
$fragment = '#'.$this->getFragment();
|
$fragment = '#'.$this->getFragment();
|
||||||
} else {
|
} else {
|
||||||
$fragment = null;
|
$fragment = null;
|
||||||
|
@ -433,7 +433,7 @@ final class PhutilURI extends Phobject {
|
||||||
if ($this->isGitURI()) {
|
if ($this->isGitURI()) {
|
||||||
// Git URIs use relative paths which do not need to begin with "/".
|
// Git URIs use relative paths which do not need to begin with "/".
|
||||||
} else {
|
} else {
|
||||||
if ($this->domain && strlen($path) && $path[0] !== '/') {
|
if ($this->domain && phutil_nonempty_string($path) && $path[0] !== '/') {
|
||||||
$path = '/'.$path;
|
$path = '/'.$path;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue