chore: small improvements (#169) #47
Annotations
10 errors
Run vendor/bin/psalm:
src/Form/DataTransformer/CurrencyToArrayTransformer.php#L17
src/Form/DataTransformer/CurrencyToArrayTransformer.php:17:45: MissingTemplateParam: Tbbc\MoneyBundle\Form\DataTransformer\CurrencyToArrayTransformer has missing template params when extending Symfony\Component\Form\DataTransformerInterface, expecting 2 (see https://psalm.dev/182)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/MoneyToArrayTransformer.php#L16
src/Form/DataTransformer/MoneyToArrayTransformer.php:16:42: MissingTemplateParam: Tbbc\MoneyBundle\Form\DataTransformer\MoneyToArrayTransformer has missing template params when extending Symfony\Component\Form\DataTransformerInterface, expecting 2 (see https://psalm.dev/182)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/MoneyToArrayTransformer.php#L30
src/Form/DataTransformer/MoneyToArrayTransformer.php:30:31: MissingParamType: Parameter $value has no provided type (see https://psalm.dev/154)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/MoneyToArrayTransformer.php#L73
src/Form/DataTransformer/MoneyToArrayTransformer.php:73:38: ArgumentTypeCoercion: Argument 1 of Money\Currency::__construct expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php#L24
src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php:24:31: MissingParamType: Parameter $value has no provided type (see https://psalm.dev/154)
|
Run vendor/bin/psalm:
src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php#L32
src/Form/DataTransformer/SimpleMoneyToArrayTransformer.php:32:16: InvalidReturnStatement: The inferred type 'array{tbbc_amount: string}' does not match the declared return type 'array{tbbc_amount: string, tbbc_currency: Money\Currency}|null' for Tbbc\MoneyBundle\Form\DataTransformer\SimpleMoneyToArrayTransformer::transform (see https://psalm.dev/128)
|
Run vendor/bin/psalm:
src/Money/MoneyManager.php#L27
src/Money/MoneyManager.php:27:34: ArgumentTypeCoercion: Argument 1 of Money\Currency::__construct expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run vendor/bin/psalm:
src/Pair/PairManager.php#L43
src/Pair/PairManager.php:43:58: ArgumentTypeCoercion: Argument 1 of Money\Currency::__construct expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run vendor/bin/psalm:
src/Pair/PairManager.php#L61
src/Pair/PairManager.php:61:34: ArgumentTypeCoercion: Argument 1 of Money\Currency::__construct expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
Run vendor/bin/psalm:
src/Pair/PairManager.php#L88
src/Pair/PairManager.php:88:34: ArgumentTypeCoercion: Argument 1 of Money\Currency::__construct expects non-empty-string, but parent type string provided (see https://psalm.dev/193)
|
The logs for this run have expired and are no longer available.
Loading