Skip to content

Refactor DDLQueryBuilder::getColumnDefinition() #1321

Refactor DDLQueryBuilder::getColumnDefinition()

Refactor DDLQueryBuilder::getColumnDefinition() #1321

Triggered via push February 3, 2024 02:40
Status Failure
Total duration 30s
Artifacts

static.yml

on: push
Matrix: psalm
Fit to window
Zoom out
Zoom in

Annotations

21 errors and 3 warnings
RiskyTruthyFalsyComparison: src/DDLQueryBuilder.php#L57
src/DDLQueryBuilder.php:57:16: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/DDLQueryBuilder.php#L88
src/DDLQueryBuilder.php:88:29: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/DDLQueryBuilder.php#L179
src/DDLQueryBuilder.php:179:13: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/DMLQueryBuilder.php#L82
src/DMLQueryBuilder.php:82:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, Yiisoft\Db\Expression\Expression|mixed>|false contains type array<array-key, Yiisoft\Db\Expression\Expression|mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/DMLQueryBuilder.php#L110
src/DMLQueryBuilder.php:110:13: RiskyTruthyFalsyComparison: Operand of type Yiisoft\Db\Query\QueryInterface|array<array-key, mixed> contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Schema.php#L164
src/Schema.php:164:13: RiskyTruthyFalsyComparison: Operand of type false|int contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Schema.php#L532
src/Schema.php:532:17: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Schema.php#L578
src/Schema.php:578:14: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Schema.php#L930
src/Schema.php:930:13: RiskyTruthyFalsyComparison: Operand of type false|int contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
PHP 8.1
Process completed with exit code 2.
PHP 8.2
The job was canceled because "ubuntu-latest_8_1" failed.
RiskyTruthyFalsyComparison: src/DDLQueryBuilder.php#L57
src/DDLQueryBuilder.php:57:16: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/DDLQueryBuilder.php#L88
src/DDLQueryBuilder.php:88:29: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/DDLQueryBuilder.php#L179
src/DDLQueryBuilder.php:179:13: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/DMLQueryBuilder.php#L82
src/DMLQueryBuilder.php:82:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, Yiisoft\Db\Expression\Expression|mixed>|false contains type array<array-key, Yiisoft\Db\Expression\Expression|mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/DMLQueryBuilder.php#L110
src/DMLQueryBuilder.php:110:13: RiskyTruthyFalsyComparison: Operand of type Yiisoft\Db\Query\QueryInterface|array<array-key, mixed> contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Schema.php#L164
src/Schema.php:164:13: RiskyTruthyFalsyComparison: Operand of type false|int contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Schema.php#L532
src/Schema.php:532:17: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Schema.php#L578
src/Schema.php:578:14: RiskyTruthyFalsyComparison: Operand of type null|string contains type string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Schema.php#L930
src/Schema.php:930:13: RiskyTruthyFalsyComparison: Operand of type false|int contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
PHP 8.2
Process completed with exit code 2.
PHP 8.0
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.1
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
PHP 8.2
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.