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

Add Doc VSCode Compatibility #95

Closed ay4t closed 7 months ago

ay4t commented 7 months ago

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.

Screenshot_20240415_101842

Additional

I only added for Codeigniter4Adapter, but I haven't tried how other adapters might also trigger warning messages.

n1crack commented 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