Skip to content

Allow null coid for AutoViewVarsTrait (nojira) #254

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/src/Lib/Traits/AutoViewVarsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down