Skip to content

Commit d778574

Browse files
committed
fixed psalm issues
1 parent 236df3f commit d778574

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/View/Helper/DatatableHelper.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class DatatableHelper extends Helper
6060
];
6161

6262
// @todo maybe array of instances
63-
private ?Datatable $dtInstance = null;
63+
private Datatable $dtInstance;
6464

6565
/**
6666
* @param array $config
@@ -86,10 +86,6 @@ public function reset(): Datatable
8686
*/
8787
public function getInstance(): Datatable
8888
{
89-
if (empty($this->dtInstance)) {
90-
return $this->reset();
91-
}
92-
9389
return $this->dtInstance;
9490
}
9591

0 commit comments

Comments
 (0)