From 6e6107dc4642c6822f6d4fb0ffaa1ad5ebc12255 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Fri, 2 Dec 2022 09:49:03 +0100 Subject: [PATCH] fix: [bootstrap-helper:table] Relax some argument typing --- src/View/Helper/BootstrapElements/BootstrapTable.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/View/Helper/BootstrapElements/BootstrapTable.php b/src/View/Helper/BootstrapElements/BootstrapTable.php index 21a627f..2b9a8f3 100644 --- a/src/View/Helper/BootstrapElements/BootstrapTable.php +++ b/src/View/Helper/BootstrapElements/BootstrapTable.php @@ -198,7 +198,7 @@ class BootstrapTable extends BootstrapGeneric return $html; } - private function genCell(string $value, array $field = [], array $row = [], int $rowIndex = 0): string + private function genCell($value, array $field = [], array $row = [], int $rowIndex = 0): string { if (isset($field['formatter'])) { $cellContent = $field['formatter']($value, $row, $rowIndex); @@ -220,7 +220,7 @@ class BootstrapTable extends BootstrapGeneric ], $cellContent); } - private function getValueFromObject(array $row, $field): string + private function getValueFromObject(array $row, $field) { $path = is_array($field) ? $field['path'] : $field; $cellValue = Hash::get($row, $path);