Use primary key instead of binding key in case of BelongsToMany association #181
Annotations
8 errors
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm
Process completed with exit code 2.
|
The logs for this run have expired and are no longer available.
Loading