Closed bishwajitcadhikary closed 7 hours ago
Issues
0 New issues
0 Accepted issues
Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code
fixed via https://github.com/yajra/laravel-datatables-html/pull/230, thanks!
This change renames the data method in the Yajra\DataTables\Html\Column class to setData to resolve a method signature conflict with the parent class Illuminate\Support\Fluent.
This conflicts with the data method in the parent Illuminate\Support\Fluent class, which has the signature:
This results in the following PHP error:
Proposed Solution The data method in the Column class has been renamed to setData to avoid the conflict:
Benefits of the Fix
Additional Notes • Any existing usage of data() to set column data will need to be updated to setData() in the codebase. • This change only affects the method used to set column data. The method inherited from Fluent (data($key = null, $default = null)) remains intact for retrieving data.