Skip to content

Commit

Permalink
Revert change that breaks tests for strange reasons
Browse files Browse the repository at this point in the history
  • Loading branch information
curry684 committed May 13, 2024
1 parent 4cb4874 commit 6c3b3dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Adapter/ArrayAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ protected function processRow(DataTableState $state, array $result, array $map,
foreach ($state->getDataTable()->getColumns() as $column) {
$value = (!empty($propertyPath = $map[$column->getName()]) && $this->accessor->isReadable($result, $propertyPath)) ? $this->accessor->getValue($result, $propertyPath) : null;
$value = $column->transform($value, $result);
if (!$match && $column->isGlobalSearchable()) {
if (!$match) {
$match = (false !== mb_stripos($value, $search));
}
$row[$column->getName()] = $value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
*/
class RegularPersonTableType implements DataTableTypeInterface
{
public function configure(DataTable $dataTable, array $optionss): void
public function configure(DataTable $dataTable, array $options): void
{
$dataTable
->add('firstName', TextColumn::class)
Expand Down

0 comments on commit 6c3b3dc

Please sign in to comment.