Update Adapter classes to use Connection pt1 #522
Annotations
27 errors and 1 warning
Run phpstan:
src/Db/Adapter/MysqlAdapter.php#L1
Ignored error pattern #^Parameter \#4 \$options of method Migrations\\Db\\Adapter\\PdoAdapter\:\:createPdoConnection\(\) expects array\<int, mixed\>, array\<int\|string, mixed\> given\.$# in path /home/runner/work/migrations/migrations/src/Db/Adapter/MysqlAdapter.php was not matched in reported errors.
|
Run phpstan:
src/Db/Adapter/PdoAdapter.php#L1
Ignored error pattern #^Access to an undefined property PDO\:\:\$connection\.$# in path /home/runner/work/migrations/migrations/src/Db/Adapter/PdoAdapter.php was not matched in reported errors.
|
Run phpstan:
src/Db/Adapter/PdoAdapter.php#L176
Access to an undefined property Cake\Database\Connection::$connection.
|
Run phpstan:
src/Db/Adapter/PdoAdapter.php#L222
Instantiated class Migrations\Db\Adapter\ReflectionProperty not found.
|
Run phpstan:
src/Db/Adapter/PdoAdapter.php#L223
Call to method setValue() on an unknown class Migrations\Db\Adapter\ReflectionProperty.
|
Run phpstan:
src/Db/Adapter/PdoAdapter.php#L651
Call to an undefined method Cake\Database\Connection::getAttribute().
|
Run phpstan:
src/Db/Adapter/SqlserverAdapter.php#L117
Parameter #1 $connection of method Migrations\Db\Adapter\PdoAdapter::setConnection() expects Cake\Database\Connection, PDO given.
|
Run phpstan:
src/Db/Adapter/SqlserverAdapter.php#L158
Parameter #1 $connection of method Migrations\Db\Adapter\PdoAdapter::setConnection() expects Cake\Database\Connection, PDO given.
|
Run phpstan:
src/Db/Adapter/SqlserverAdapter.php#L366
Call to an undefined method Cake\Database\Connection::quote().
|
Run phpstan:
src/Db/Adapter/SqlserverAdapter.php#L1372
Access to an undefined property Migrations\Db\Adapter\SqlserverAdapter::$decoratedConnection.
|
Run phpcs:
src/Db/Adapter/MysqlAdapter.php#L12
Type Cake\Database\Driver\Mysql (as MysqlDriver) is not used in this file.
|
Run phpcs:
src/Db/Adapter/MysqlAdapter.php#L20
Type PDO is not used in this file.
|
Run phpcs:
src/Db/Adapter/MysqlAdapter.php#L22
Type RuntimeException is not used in this file.
|
Run phpcs:
src/Db/Adapter/MysqlAdapter.php#L23
Type UnexpectedValueException is not used in this file.
|
Run phpcs:
src/Db/Adapter/MysqlAdapter.php#L109
Missing doc comment for function setConnection()
|
Run phpcs:
src/Db/Adapter/MysqlAdapter.php#L111
Use single instead of double quotes for simple strings.
|
Run phpcs:
src/Db/Adapter/MysqlAdapter.php#L1253
Use single instead of double quotes for simple strings.
|
Run phpcs:
src/Db/Adapter/PostgresAdapter.php#L12
Type Cake\Database\Driver\Postgres (as PostgresDriver) is not used in this file.
|
Run phpcs:
src/Db/Adapter/PostgresAdapter.php#L20
Type PDO is not used in this file.
|
Run phpcs:
src/Db/Adapter/PostgresAdapter.php#L21
Type PDOException is not used in this file.
|
Run psalm:
src/Db/Adapter/PdoAdapter.php#L222
src/Db/Adapter/PdoAdapter.php:222:21: UndefinedClass: Class, interface or enum named Migrations\Db\Adapter\ReflectionProperty does not exist (see https://psalm.dev/019)
|
Run psalm:
src/Db/Adapter/PdoAdapter.php#L651
src/Db/Adapter/PdoAdapter.php:651:40: UndefinedMethod: Method Cake\Database\Connection::getAttribute does not exist (see https://psalm.dev/022)
|
Run psalm:
src/Db/Adapter/SqlserverAdapter.php#L117
src/Db/Adapter/SqlserverAdapter.php:117:34: InvalidArgument: Argument 1 of Migrations\Db\Adapter\SqlserverAdapter::setConnection expects Cake\Database\Connection, but PDO provided (see https://psalm.dev/004)
|
Run psalm:
src/Db/Adapter/SqlserverAdapter.php#L158
src/Db/Adapter/SqlserverAdapter.php:158:30: InvalidArgument: Argument 1 of Migrations\Db\Adapter\SqlserverAdapter::setConnection expects Cake\Database\Connection, but PDO provided (see https://psalm.dev/004)
|
Run psalm:
src/Db/Adapter/SqlserverAdapter.php#L366
src/Db/Adapter/SqlserverAdapter.php:366:102: UndefinedMethod: Method Cake\Database\Connection::quote does not exist (see https://psalm.dev/022)
|
Run psalm:
src/Db/Adapter/SqlserverAdapter.php#L1372
src/Db/Adapter/SqlserverAdapter.php:1372:16: UndefinedThisPropertyAssignment: Instance property Migrations\Db\Adapter\SqlserverAdapter::$decoratedConnection is not defined (see https://psalm.dev/040)
|
Run psalm
Process completed with exit code 2.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
The logs for this run have expired and are no longer available.
Loading