In the function Db::dropIndexIfExists() the last arugment (4) has incorrect type. It must be instance of Connection but the migration class itself given.
Check PR https://github.com/nystudio107/craft-retour/pull/269 please
To reproduce
Try to apply migration on craft 4.x
Expected behaviour
Migration should run without errors
$this->db should be given in the last argument
Screenshots
Exception: craft\helpers\Db::dropIndexIfExists(): Argument #4 ($db) must be of type ?craft\db\Connection, nystudio107\retour\migrations\m181216_043222_rebuild_indexes given, called in /mysite/vendor/nystudio107/craft-retour/src/migrations/m181216_043222_rebuild_indexes.php on line 29 (/mysite/vendor/craftcms/cms/src/helpers/Db.php:1178)
Describe the bug
In the function Db::dropIndexIfExists() the last arugment (4) has incorrect type. It must be instance of Connection but the migration class itself given. Check PR https://github.com/nystudio107/craft-retour/pull/269 please
To reproduce
Try to apply migration on craft 4.x
Expected behaviour
Migration should run without errors
$this->db
should be given in the last argumentScreenshots
Exception: craft\helpers\Db::dropIndexIfExists(): Argument #4 ($db) must be of type ?craft\db\Connection, nystudio107\retour\migrations\m181216_043222_rebuild_indexes given, called in /mysite/vendor/nystudio107/craft-retour/src/migrations/m181216_043222_rebuild_indexes.php on line 29 (/mysite/vendor/craftcms/cms/src/helpers/Db.php:1178)
Versions