1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 14:52:41 +01:00

Update DiffusionDocumentRenderingEngine to cope with null code coverage in PHP 8.1

Summary:
Update DiffusionDocumentRenderingEngine to cope with null code coverage in PHP 8.1

Fixes T15523

Test Plan: https://my.phorge.site/source/myrepo/browse/master/myfile

Reviewers: O1 Blessed Committers, avivey

Reviewed By: O1 Blessed Committers, avivey

Subscribers: speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15523

Differential Revision: https://we.phorge.it/D25330
This commit is contained in:
Steve Campbell 2023-07-04 16:24:12 +01:00
parent 80484b76a5
commit 5e48e16f77

View file

@ -87,7 +87,7 @@ final class DiffusionDocumentRenderingEngine
$ref->setSymbolMetadata($this->getSymbolMetadata()); $ref->setSymbolMetadata($this->getSymbolMetadata());
$coverage = $drequest->loadCoverage(); $coverage = $drequest->loadCoverage();
if (strlen($coverage)) { if (phutil_nonempty_string($coverage)) {
$ref->addCoverage($coverage); $ref->addCoverage($coverage);
} }
} }