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;