diff --git a/src/file/ThriftFooter.php b/src/file/ThriftFooter.php index 07fc82d..34d6808 100644 --- a/src/file/ThriftFooter.php +++ b/src/file/ThriftFooter.php @@ -211,7 +211,10 @@ protected function _CreateModelSchema(?array $path, array &$container, int $chil array_merge( $path ?? [], // Fallback to empty array as path $se->path ?? [ $se->name ] // NOTE: fallback to array-ified $se->name - ) + ), + function ($v) { + return !empty($v) || $v == "0"; + } ) ));