Skip to content

feat: add un/serialize for currency #565

feat: add un/serialize for currency

feat: add un/serialize for currency #565

Triggered via pull request January 26, 2024 17:02
Status Failure
Total duration 43s
Artifacts

ci.yml

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

Annotations

27 errors
PropertyTypeCoercion: src/Currency.php#L73
src/Currency.php:73:23: PropertyTypeCoercion: $this->code expects 'non-empty-string', parent type 'string' provided (see https://psalm.dev/198)
MethodSignatureMustProvideReturnType: src/Currency.php#L85
src/Currency.php:85:21: MethodSignatureMustProvideReturnType: Method Money\Currency::unserialize must have a return type signature (see https://psalm.dev/282)
InvalidReturnStatement: src/Currency.php#L87
src/Currency.php:87:16: InvalidReturnStatement: No return values are expected for Money\Currency::unserialize (see https://psalm.dev/128)
InvalidArgument: src/Currency.php#L87
src/Currency.php:87:37: InvalidArgument: Argument 1 of Money\Currency::__unserialize expects array<array-key, mixed>, but string provided (see https://psalm.dev/004)
Psalm
Process completed with exit code 2.
PropertyTypeCoercion: src/Currency.php#L73
src/Currency.php:73:23: PropertyTypeCoercion: $this->code expects 'non-empty-string', parent type 'string' provided (see https://psalm.dev/198)
MethodSignatureMustProvideReturnType: src/Currency.php#L85
src/Currency.php:85:21: MethodSignatureMustProvideReturnType: Method Money\Currency::unserialize must have a return type signature (see https://psalm.dev/282)
InvalidReturnStatement: src/Currency.php#L87
src/Currency.php:87:16: InvalidReturnStatement: No return values are expected for Money\Currency::unserialize (see https://psalm.dev/128)
InvalidArgument: src/Currency.php#L87
src/Currency.php:87:37: InvalidArgument: Argument 1 of Money\Currency::__unserialize expects array<array-key, mixed>, but string provided (see https://psalm.dev/004)
Build (8.3)
Process completed with exit code 2.
Build (8.2)
The job was canceled because "_8_3" failed.
PropertyTypeCoercion: src/Currency.php#L73
src/Currency.php:73:23: PropertyTypeCoercion: $this->code expects 'non-empty-string', parent type 'string' provided (see https://psalm.dev/198)
MethodSignatureMustProvideReturnType: src/Currency.php#L85
src/Currency.php:85:21: MethodSignatureMustProvideReturnType: Method Money\Currency::unserialize must have a return type signature (see https://psalm.dev/282)
InvalidReturnStatement: src/Currency.php#L87
src/Currency.php:87:16: InvalidReturnStatement: No return values are expected for Money\Currency::unserialize (see https://psalm.dev/128)
InvalidArgument: src/Currency.php#L87
src/Currency.php:87:37: InvalidArgument: Argument 1 of Money\Currency::__unserialize expects array<array-key, mixed>, but string provided (see https://psalm.dev/004)
Build (8.2)
Process completed with exit code 2.
Build (8.1)
The job was canceled because "_8_3" failed.
PropertyTypeCoercion: src/Currency.php#L73
src/Currency.php:73:23: PropertyTypeCoercion: $this->code expects 'non-empty-string', parent type 'string' provided (see https://psalm.dev/198)
MethodSignatureMustProvideReturnType: src/Currency.php#L85
src/Currency.php:85:21: MethodSignatureMustProvideReturnType: Method Money\Currency::unserialize must have a return type signature (see https://psalm.dev/282)
InvalidReturnStatement: src/Currency.php#L87
src/Currency.php:87:16: InvalidReturnStatement: No return values are expected for Money\Currency::unserialize (see https://psalm.dev/128)
InvalidArgument: src/Currency.php#L87
src/Currency.php:87:37: InvalidArgument: Argument 1 of Money\Currency::__unserialize expects array<array-key, mixed>, but string provided (see https://psalm.dev/004)
Build (8.1)
Process completed with exit code 2.
PropertyTypeCoercion: src/Currency.php#L73
src/Currency.php:73:23: PropertyTypeCoercion: $this->code expects 'non-empty-string', parent type 'string' provided (see https://psalm.dev/198)
MethodSignatureMustProvideReturnType: src/Currency.php#L85
src/Currency.php:85:21: MethodSignatureMustProvideReturnType: Method Money\Currency::unserialize must have a return type signature (see https://psalm.dev/282)
InvalidReturnStatement: src/Currency.php#L87
src/Currency.php:87:16: InvalidReturnStatement: No return values are expected for Money\Currency::unserialize (see https://psalm.dev/128)
InvalidArgument: src/Currency.php#L87
src/Currency.php:87:37: InvalidArgument: Argument 1 of Money\Currency::__unserialize expects array<array-key, mixed>, but string provided (see https://psalm.dev/004)
Build lowest version
Process completed with exit code 2.