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

Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error

Summary:
Fix HarbormasterBuildUnitMessage PHP 8.1 strlen(null) error.

Fixes T15572

Test Plan: Do an 'arc diff' to a PHP 8.1 Phorge server when doing so will trigger unit tests.

Reviewers: O1 Blessed Committers, speck

Reviewed By: O1 Blessed Committers, speck

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

Maniphest Tasks: T15572

Differential Revision: https://we.phorge.it/D25365
This commit is contained in:
sten 2023-07-29 12:17:05 +01:00
parent 1802ebd2cc
commit 007e7621f2

View file

@ -102,7 +102,7 @@ final class HarbormasterBuildUnitMessage
$obj->setDuration((float)idx($dict, 'duration'));
$path = idx($dict, 'path');
if (strlen($path)) {
if ($path !== null && strlen($path)) {
$obj->setProperty('path', $path);
}