n1crack / datatables

Simplify your Datatables server-side processing effortlessly using our lightning-fast PHP library, streamlining your workflow seamlessly.
https://datatables.ozdemir.be/
MIT License
266 stars 89 forks source link

Return value of Ozdemir\Datatables\Column::value() must be of the type string, null returned #64

Closed moudarir closed 4 years ago

moudarir commented 4 years ago

Hello,

This issue is fired when the value from database is NULL.

1st screenshot then 2nd screenshot

To resolve this issue, we must remove : stingcode typing in public function value($row): string or adding ? mark before string for => php7.2 like this 3rd screenshot

Hope that can help someone. Cordially.

n1crack commented 4 years ago

Thank you for reporting. It will be fixed in the next release. https://github.com/n1crack/datatables/commit/27309db1536ec503a29080cc61e14e71d866456e