Skip to content

Commit

Permalink
fixed psalm issues
Browse files Browse the repository at this point in the history
  • Loading branch information
arusinowski committed Feb 2, 2024
1 parent 236df3f commit d778574
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/View/Helper/DatatableHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class DatatableHelper extends Helper
];

// @todo maybe array of instances
private ?Datatable $dtInstance = null;
private Datatable $dtInstance;

/**
* @param array $config
Expand All @@ -86,10 +86,6 @@ public function reset(): Datatable
*/
public function getInstance(): Datatable
{
if (empty($this->dtInstance)) {
return $this->reset();
}

return $this->dtInstance;
}

Expand Down

0 comments on commit d778574

Please sign in to comment.