FriendsOfCake / cakephp-upload

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

composer took old file #478

Closed mnishig closed 6 years ago

mnishig commented 6 years ago

I installed cakephp-upload with compose follwing command composer require josegonzalez/cakephp-upload

Try to Example on document , but nameCallback occured error

Too few arguments to function App\Model\Table\UsersTable::App\Model\Table{closure}(), 2 passed in /opt/yandex/ci-rec/sandbox/upload-ex/vendor/josegonzalez/cakephp-upload/src/File/Path/Filename/DefaultTrait.php on line 19 and exactly 5 expected

and checked my installed file as bellow that seems like old.

・vendor/josegonzalez/cakephp-upload/src/File/Path/Filename/DefaultTrait.php

` trait DefaultTrait { /**

josegonzalez commented 6 years ago

You probably have an older version of CakePHP and need to upgrade that as well to get a newer version of this plugin.

Closing as we don't control how composers dependency resolution works. I think you can use conposer outdated to see what you need to update