FriendsOfCake / cakephp-upload

CakePHP: Handle file uploading sans ridiculous automagic
https://cakephp-upload.readthedocs.io/
MIT License
551 stars 255 forks source link

update to cake3.6 deprecation changes #486

Closed Graziel closed 6 years ago

raul338 commented 6 years ago

This should be merged with #485

Graziel commented 6 years ago

woops sorry didnt saw there was already some pr to 3.6, at least i got to remember how to do those

raul338 commented 6 years ago

May I ask why the changes in src/Database/Type/FileType.php ? I didn't saw any deprecation warnings while using it.

Graziel commented 6 years ago

its calling

/**
     * {@inheritDoc}
     */
    public function toDatabase($value, Driver $driver)
    {
        return $this->_basicTypeCast($value);
    }

and _basicTypeCast($value); is deprecated 3.1 All types should now be a specific class