Skip to content

Use primary key instead of binding key in case of BelongsToMany association #181

Use primary key instead of binding key in case of BelongsToMany association

Use primary key instead of binding key in case of BelongsToMany association #181

Re-run triggered January 19, 2024 07:00
Status Failure
Total duration 49s
Artifacts

ci.yml

on: pull_request
cs-stan  /  Coding Standard & Static Analysis
33s
cs-stan / Coding Standard & Static Analysis
Matrix: testsuite / testsuite-linux
Fit to window
Zoom out
Zoom in

Annotations

8 errors
RiskyTruthyFalsyComparison: src/Controller/Component/CrudComponent.php#L236
src/Controller/Component/CrudComponent.php:236:26: 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/Controller/Component/CrudComponent.php#L278
src/Controller/Component/CrudComponent.php:278: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/Controller/Component/CrudComponent.php#L428
src/Controller/Component/CrudComponent.php:428: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/Controller/Component/CrudComponent.php#L451
src/Controller/Component/CrudComponent.php:451:17: RiskyTruthyFalsyComparison: Operand of type false|int<0, max> contains type int<0, max>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/TestSuite/Traits/CrudTestTrait.php#L79
src/TestSuite/Traits/CrudTestTrait.php:79:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|mixed contains types array<array-key, mixed>|mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Traits/ViewTrait.php#L22
src/Traits/ViewTrait.php:22:13: RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Traits/ViewVarTrait.php#L43
src/Traits/ViewVarTrait.php:43:13: RiskyTruthyFalsyComparison: Operand of type mixed|null contains type mixed, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
cs-stan / Coding Standard & Static Analysis
Process completed with exit code 2.