Skip to content

Resolve deprecated methods #1097

Resolve deprecated methods

Resolve deprecated methods #1097

Triggered via pull request February 1, 2024 11:11
Status Failure
Total duration 2m 13s
Artifacts

static.yml

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

Annotations

14 errors and 3 warnings
UndefinedInterfaceMethod: src/Schema.php#L812
src/Schema.php:812:95: UndefinedInterfaceMethod: Method Yiisoft\Db\Schema\QuoterInterface::getRawTableName does not exist (see https://psalm.dev/181)
PHP 8.0
Process completed with exit code 2.
RiskyTruthyFalsyComparison: src/DMLQueryBuilder.php#L154
src/DMLQueryBuilder.php:154: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/DQLQueryBuilder.php#L66
src/DQLQueryBuilder.php:66:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null 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/Dsn.php#L46
src/Dsn.php:46: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#L564
src/Schema.php:564:21: 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)
UndefinedInterfaceMethod: src/Schema.php#L812
src/Schema.php:812:95: UndefinedInterfaceMethod: Method Yiisoft\Db\Schema\QuoterInterface::getRawTableName does not exist (see https://psalm.dev/181)
PHP 8.2
The operation was canceled.
RiskyTruthyFalsyComparison: src/DMLQueryBuilder.php#L154
src/DMLQueryBuilder.php:154: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/DQLQueryBuilder.php#L66
src/DQLQueryBuilder.php:66:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null 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/Dsn.php#L46
src/Dsn.php:46: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#L564
src/Schema.php:564:21: 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)
UndefinedInterfaceMethod: src/Schema.php#L812
src/Schema.php:812:95: UndefinedInterfaceMethod: Method Yiisoft\Db\Schema\QuoterInterface::getRawTableName does not exist (see https://psalm.dev/181)
PHP 8.1
The operation was canceled.
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.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/.
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/.