From cce29b64bcf41a2f6ad5f7a71287ac0ba23ace22 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Fri, 22 Nov 2024 13:49:20 -0500 Subject: [PATCH] Allow null coid for AutoViewVarsTrait (nojira) --- app/src/Lib/Traits/AutoViewVarsTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/Lib/Traits/AutoViewVarsTrait.php b/app/src/Lib/Traits/AutoViewVarsTrait.php index 98bf1241..2da0dda5 100644 --- a/app/src/Lib/Traits/AutoViewVarsTrait.php +++ b/app/src/Lib/Traits/AutoViewVarsTrait.php @@ -68,7 +68,7 @@ public function setAutoViewVars($vars) { * @return \Generator * @since COmanage Registry v5.0.0 */ - public function calculateAutoViewVars(int $coId, Object $obj = null): \Generator + public function calculateAutoViewVars(int|null $coId, Object $obj = null): \Generator { // $table = the actual table object $table = $this;