Closed rederlo closed 6 years ago
this method added since cake 3.5.0
The cakephp/cakephp~3.4 constraint means it will upgrade up to (not including) 4.0, right? As of now, the latest version is 3.7.3, which means when I fork this repository, that is the version it will install when running composer install.
When I then run tests in phpunit without altering any code in the cakephp-upload repository, I will get an error as changes in the CakePHP core has occured. If I change composer to cakephp/cakephp:3.6, I get no such error and all tests pass.
The error I encounter is:
Uncaught InvalidArgumentException: Cannot convert value of type
stringto integer in X:\xampp\htdocs\cakephp-upload\vendor\cakephp\cakephp\src\Database\Type\IntegerType.php:64
I'm not well versed in this yet, so let me know if I'm not thinking correctly.
https://semver.mwl.be/#?package=cakephp%2Fcakephp&version=~3.4&minimum-stability=stable
So as you can see the constraint means 3.4.0 to any version above, but not a 4.x release. Perhaps the minimum constraint can be increased now? Any thoughts @josegonzalez
@mentisy Mostly likely the plugin's test suite wasn't run after CakePHP 3.7 was released and needs some fix to account for changes in 3.7.
You are welcome to submit a fix for the issue.
Call to undefined method Cake\Database\Schema\TableSchema::setColumnType()