Realize column factory #1416
Annotations
20 errors and 1 warning
RedundantCastGivenDocblockType:
src/Column/ColumnFactory.php#L118
src/Column/ColumnFactory.php:118:22: RedundantCastGivenDocblockType: Redundant cast to int given docblock-provided type (see https://psalm.dev/263)
|
MixedArgumentTypeCoercion:
src/Column/ColumnFactory.php#L136
src/Column/ColumnFactory.php:136:89: MixedArgumentTypeCoercion: Argument 1 of Yiisoft\Db\Pgsql\Column\StructuredColumnSchema::columns expects array<string, Yiisoft\Db\Schema\Column\ColumnSchemaInterface>, but parent type array<array-key, mixed> provided (see https://psalm.dev/194)
|
MixedInferredReturnType:
src/Schema.php#L985
src/Schema.php:985:74: MixedInferredReturnType: Could not verify return type 'Yiisoft\Db\Schema\Column\ColumnSchemaInterface' for Yiisoft\Db\Pgsql\Schema::createColumnSchema (see https://psalm.dev/047)
|
UndefinedMethod:
src/Schema.php#L1001
src/Schema.php:1001:26: UndefinedMethod: Method Yiisoft\Db\Pgsql\Schema::createColumnSchemaFromType does not exist (see https://psalm.dev/022)
|
MixedReturnStatement:
src/Schema.php#L1007
src/Schema.php:1007:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
PHP 8.0
Process completed with exit code 2.
|
PHP 8.2
The job was canceled because "ubuntu-latest_8_0" failed.
|
RedundantCastGivenDocblockType:
src/Column/ColumnFactory.php#L118
src/Column/ColumnFactory.php:118:22: RedundantCastGivenDocblockType: Redundant cast to int given docblock-provided type (see https://psalm.dev/263)
|
MixedArgumentTypeCoercion:
src/Column/ColumnFactory.php#L136
src/Column/ColumnFactory.php:136:89: MixedArgumentTypeCoercion: Argument 1 of Yiisoft\Db\Pgsql\Column\StructuredColumnSchema::columns expects array<string, Yiisoft\Db\Schema\Column\ColumnSchemaInterface>, but parent type array<array-key, mixed> provided (see https://psalm.dev/194)
|
InvalidArgument:
src/Column/ColumnFactory.php#L137
src/Column/ColumnFactory.php:137:52: InvalidArgument: Argument 2 of Yiisoft\Db\Schema\Column\ColumnFactory::fromType expects array{allow_null?: bool|null|string, auto_increment?: bool|string, comment?: null|string, computed?: bool|string, db_type?: null|string, default_value?: mixed, enum_values?: array<array-key, mixed>|null, extra?: null|string, name?: string, precision?: int|null|string, primary_key?: bool|string, scale?: int|null|string, schema?: null|string, size?: int|null|string, table?: null|string, type?: string, unsigned?: bool|string}, but array{allow_null?: bool|null|string, auto_increment?: bool|string, columns?: array<array-key, mixed>, comment?: null|string, computed?: bool|string, db_type?: null|string, default_value?: mixed, dimension?: int, enum_values?: array<array-key, mixed>|null, extra?: null|string, name?: string, precision?: int|null|string, primary_key?: bool|string, scale?: int|null|string, schema?: null|string, sequence_name?: null|string, size?: int|null|string, table?: null|string, type?: string} with additional array shape fields (columns, dimension, sequence_name) was provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Schema.php#L747
src/Schema.php:747:51: InvalidArgument: Argument 2 of Yiisoft\Db\Schema\Column\ColumnFactoryInterface::fromType expects array{allow_null?: bool|null|string, auto_increment?: bool|string, comment?: null|string, computed?: bool|string, db_type?: null|string, default_value?: mixed, enum_values?: array<array-key, mixed>|null, extra?: null|string, name?: string, precision?: int|null|string, primary_key?: bool|string, scale?: int|null|string, schema?: null|string, size?: int|null|string, table?: null|string, type?: string, unsigned?: bool|string}, but array{columns: array<string, Yiisoft\Db\Schema\Column\ColumnSchemaInterface>, dimension: int} with additional array shape fields (dimension, columns) was provided (see https://psalm.dev/004)
|
InvalidArgument:
src/Schema.php#L750
src/Schema.php:750:39: InvalidArgument: Argument 2 of Yiisoft\Db\Schema\Column\ColumnFactoryInterface::fromDbType expects array{allow_null?: bool|null|string, auto_increment?: bool|string, comment?: null|string, computed?: bool|string, db_type?: null|string, default_value?: mixed, enum_values?: array<array-key, mixed>|null, extra?: null|string, name?: string, precision?: int|null|string, primary_key?: bool|string, scale?: int|null|string, schema?: null|string, size?: int|null|string, table?: null|string, type?: string, unsigned?: bool|string}, but array{dimension: int} with additional array shape fields (dimension) was provided (see https://psalm.dev/004)
|
MixedInferredReturnType:
src/Schema.php#L985
src/Schema.php:985:74: MixedInferredReturnType: Could not verify return type 'Yiisoft\Db\Schema\Column\ColumnSchemaInterface' for Yiisoft\Db\Pgsql\Schema::createColumnSchema (see https://psalm.dev/047)
|
UndefinedMethod:
src/Schema.php#L1001
src/Schema.php:1001:26: UndefinedMethod: Method Yiisoft\Db\Pgsql\Schema::createColumnSchemaFromType does not exist (see https://psalm.dev/022)
|
MixedReturnStatement:
src/Schema.php#L1007
src/Schema.php:1007:16: MixedReturnStatement: Could not infer a return type (see https://psalm.dev/138)
|
PHP 8.2
The operation was canceled.
|
PHP 8.3
The job was canceled because "ubuntu-latest_8_0" failed.
|
PHP 8.3
The operation was canceled.
|
PHP 8.1
The job was canceled because "ubuntu-latest_8_0" failed.
|
PHP 8.1
The operation was canceled.
|
PHP 8.0
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|