1
0
Fork 0
mirror of https://we.phorge.it/source/arcanist.git synced 2024-11-25 08:12:40 +01:00

Fix arc browse for php 8.x

Summary: Ref T15064

Test Plan: Run `arc browse <filename>`, get a browser and no exception.

Reviewers: O1 Blessed Committers, valerio.bozzolan, chris

Reviewed By: O1 Blessed Committers, chris

Subscribers: speck, tobiaswiese, Matthew, Cigaryno

Maniphest Tasks: T15064

Differential Revision: https://we.phorge.it/D25309
This commit is contained in:
Aviv Eyal 2023-06-24 12:23:58 -07:00
parent 8130241a11
commit 8426ebc053

View file

@ -66,7 +66,7 @@ final class ArcanistRepositoryRef
)); ));
foreach ($params as $key => $value) { foreach ($params as $key => $value) {
if (!strlen($value)) { if ($value === null || !strlen($value)) {
unset($params[$key]); unset($params[$key]);
} }
} }