Skip to content

Commit

Permalink
Merge pull request #2931 from Naugrimm/php8.1-compat
Browse files Browse the repository at this point in the history
fix: prevent deprecation errors in php 8.1+
  • Loading branch information
yajra committed Jan 11, 2023
2 parents 314f0db + 3d8162d commit 87f8f19
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/DataTableAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,8 @@ abstract class DataTableAbstract implements DataTable
*/
protected array $searchPanes = [];

protected mixed $transformer;

/**
* Can the DataTable engine be created with these parameters.
*
Expand Down
2 changes: 1 addition & 1 deletion src/QueryDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,7 +735,7 @@ protected function showDebugger(array $output): array
$query_log = $this->getConnection()->getQueryLog();
array_walk_recursive($query_log, function (&$item) {
if (is_string($item)) {
$item = utf8_encode($item);
$item = iconv('iso-8859-1', 'utf-8', $item);
}
});

Expand Down

0 comments on commit 87f8f19

Please sign in to comment.