mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-25 16:22:43 +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:
parent
1802ebd2cc
commit
007e7621f2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue