| 1 | <?php defined('SYSPATH') or die('No direct access allowed.'); |
||
| 12 | class Profiler_Table_Core |
||
| 13 | { |
||
| 14 | protected $columns = array(); |
||
| 15 | protected $rows = array(); |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Get styles for table. |
||
| 19 | * |
||
| 20 | * @return string |
||
| 21 | */ |
||
| 22 | public function styles() |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Add column to table. |
||
| 36 | * |
||
| 37 | * @param string CSS class |
||
| 38 | * @param string CSS style |
||
| 39 | */ |
||
| 40 | public function add_column($class = '', $style = '') |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Add row to table. |
||
| 47 | * |
||
| 48 | * @param array data to go in table cells |
||
| 49 | * @param string CSS class |
||
| 50 | * @param string CSS style |
||
| 51 | */ |
||
| 52 | public function add_row($data, $class = '', $style = '') |
||
| 56 | |||
| 57 | /** |
||
| 58 | * Render table. |
||
| 59 | * |
||
| 60 | * @return string |
||
| 61 | */ |
||
| 62 | public function render() |
||
| 68 | } |
||
| 69 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: