Closed ay4t closed 7 months ago
what about removing type completely
/**
* @param $query
* @return Datatables
*/
public function query($query): Datatables
or using mixed
/**
* @param string|mixed $query
* @return Datatables
*/
public function query($query): Datatables
remove warning message from VScode when using CI4Adapter
Reason
When I use VSCode and apply the library for Codeigniter 4, there's a warning message in VSCode like the screenshot below. This message doesn't cause errors, but it's quite annoying for some people because of the warning message.
Additional
I only added for Codeigniter4Adapter, but I haven't tried how other adapters might also trigger warning messages.