Skip to content

fixed psalm

fixed psalm #39

Triggered via push March 19, 2024 21:21
Status Failure
Total duration 48s
Artifacts

psalm.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 2 warnings
MissingTemplateParam: src/Casts/CurrencyCast.php#L13
src/Casts/CurrencyCast.php:13:31: MissingTemplateParam: Akaunting\Money\Casts\CurrencyCast has missing template params when extending Illuminate\Contracts\Database\Eloquent\CastsAttributes, expecting 2 (see https://psalm.dev/182)
MissingTemplateParam: src/Casts/MoneyCast.php#L14
src/Casts/MoneyCast.php:14:28: MissingTemplateParam: Akaunting\Money\Casts\MoneyCast has missing template params when extending Illuminate\Contracts\Database\Eloquent\CastsAttributes, expecting 2 (see https://psalm.dev/182)
MissingTemplateParam: src/Currency.php#L183
src/Currency.php:183:27: MissingTemplateParam: Akaunting\Money\Currency has missing template params when extending Illuminate\Contracts\Support\Arrayable, expecting 2 (see https://psalm.dev/182)
MissingTemplateParam: src/Money.php#L187
src/Money.php:187:24: MissingTemplateParam: Akaunting\Money\Money has missing template params when extending Illuminate\Contracts\Support\Arrayable, expecting 2 (see https://psalm.dev/182)
RiskyTruthyFalsyComparison: src/Money.php#L609
src/Money.php:609:43: 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/Money.php#L635
src/Money.php:635:43: 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)
UndefinedClass: src/Rules/CurrencyRule.php#L9
src/Rules/CurrencyRule.php:9:31: UndefinedClass: Class, interface or enum named Illuminate\Contracts\Validation\ValidationRule does not exist (see https://psalm.dev/019)
psalm
Process completed with exit code 2.
psalm
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/cache@v1. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
psalm
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/cache@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/