From eab6c2765f07d2f64525a73c7720933ee704e264 Mon Sep 17 00:00:00 2001 From: Netkas Date: Thu, 15 Dec 2022 21:17:07 -0500 Subject: [PATCH] Minor correction --- src/ncc/Objects/Package/Header.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ncc/Objects/Package/Header.php b/src/ncc/Objects/Package/Header.php index 1cc5f3d..2c18c5c 100644 --- a/src/ncc/Objects/Package/Header.php +++ b/src/ncc/Objects/Package/Header.php @@ -41,7 +41,7 @@ /** * The optional update source to where the package can be updated from * - * @var $UpdateSource|null + * @var UpdateSource|null */ public $UpdateSource; @@ -67,7 +67,7 @@ ($bytecode ? Functions::cbc('compiler_extension') : 'compiler_extension') => $this->CompilerExtension->toArray($bytecode), ($bytecode ? Functions::cbc('runtime_constants') : 'runtime_constants') => $this->RuntimeConstants, ($bytecode ? Functions::cbc('compiler_version') : 'compiler_version') => $this->CompilerVersion, - ($bytecode ? Functions::cbc('update_source') : 'update_source') => $this->UpdateSource->toArray($bytecode), + ($bytecode ? Functions::cbc('update_source') : 'update_source') => ($this->UpdateSource?->toArray($bytecode) ?? null), ($bytecode ? Functions::cbc('options') : 'options') => $this->Options, ]; }