Closed
Description
What steps will reproduce the problem? Testing
What is the expected result? Smooth run
What do you get instead? Error
Additional info
Q | A |
---|---|
Version | 1.0.? |
PHP version | 8.2 |
Operating system | Windows 11 |
..resources/view/invoice/inv/index.php
<?php
$read_with_iterable_type = $paginator_with_readabledatainterface_type->read();
/**
* @var ColumnInterface[] $columns
*/
$columns = [
new DataColumn(
'id'
)
];
?>
<?php echo GridView::widget()
// unpack the contents within the array using the three dot splat operator
->columns(...$columns)
->dataReader($paginator_with_readabledatainterface_type)
?>
Hi Vijk,
If I pass an empty array for $columns, the GridView attempts to build the ActionColumns ie. view etc and I get the following error as well:
I thought this might be of interest. The code appears not to be accepting the DataColumn's first argument id because it has no property type associated with it ie. undefined property. This appears to be a Cycle issue.