Add the possibility to set the minimum number of decimals in the numb… #418
This run and associated checks have been archived and are scheduled for deletion.
Learn more about checks retention
continuous-integration.yml
on: pull_request
ci
/
Generate job matrix
11s
Matrix: ci / QA Checks
Annotations
10 errors
PossiblyUnusedMethod:
src/View/Helper/NumberFormat.php#L173
src/View/Helper/NumberFormat.php:173:21: PossiblyUnusedMethod: Cannot find any calls to method Laminas\I18n\View\Helper\NumberFormat::setDecimals (see https://psalm.dev/087)
|
PossiblyUnusedMethod:
src/View/Helper/NumberFormat.php#L201
src/View/Helper/NumberFormat.php:201:21: PossiblyUnusedMethod: Cannot find any calls to method Laminas\I18n\View\Helper\NumberFormat::getDecimals (see https://psalm.dev/087)
|
InvalidReturnType:
test/View/Helper/NumberFormatTest.php#L25
test/View/Helper/NumberFormatTest.php:25:17: InvalidReturnType: The declared return type 'array<array-key, array{0: string, 1: int, 2: int, 3: int|null, 4: array<int, string>, 5: float, 6: string}>' for LaminasTest\I18n\View\Helper\NumberFormatTest::numberTestsDataProvider is incorrect, got 'list{list{'de_DE', 1, 3, null, array<never, never>, null, float(1234567.8912346), '1.234.567,891'}, list{'de_DE', 1, 3, 6, array<never, never>, null, float(1234567.8912346), '1.234.567,891235'}, list{'de_DE', 3, 3, null, array<never, never>, null, float(1234567.8912346), '123.456.789 %'}, list{'de_DE', 3, 3, 1, array<never, never>, null, float(1234567.8912346), '123.456.789,1 %'}, list{'de_DE', 4, 3, null, array<never, never>, null, float(1234567.8912346), '1,23456789123456E6'}, list{'ru_RU', 1, 3, null, array<never, never>, null, float(1234567.8912346), '1 234 567,891'}, list{'ru_RU', 3, 3, null, array<never, never>, null, float(1234567.8912346), '123 456 789 %'}, list{'ru_RU', 4, 3, null, array<never, never>, null, float(1234567.8912346), '1,23456789123456E6'}, list{'en_US', 1, 3, null, array<never, never>, null, float(1234567.8912346), '1,234,567.891'}, list{'en_US', 3, 3, null, array<never, never>, null, float(1234567.8912346), '123,456,789%'}, list{'en_US', 4, 3, null, array<never, never>, null, float(1234567.8912346), '1.23456789123456E6'}, list{'en_US', 3, 3, null, array{2: 'MINUS'}, null, float(-1234567.8912346), 'MINUS123,456,789%'}, list{'de_DE', 1, 3, 5, array<never, never>, 0, float(1234567.8912346), '1.234.567,89123'}, list{'de_DE', 1, 3, 5, array<never, never>, 0, 1234567, '1.234.567'}}' (see https://psalm.dev/011)
|
PossiblyUnusedMethod:
test/View/Helper/NumberFormatTest.php#L26
test/View/Helper/NumberFormatTest.php:26:28: PossiblyUnusedMethod: Cannot find any calls to method LaminasTest\I18n\View\Helper\NumberFormatTest::numberTestsDataProvider (see https://psalm.dev/087)
|
InvalidReturnStatement:
test/View/Helper/NumberFormatTest.php#L28
test/View/Helper/NumberFormatTest.php:28:16: InvalidReturnStatement: The inferred type 'list{list{'de_DE', 1, 3, null, array<never, never>, null, float(1234567.8912346), '1.234.567,891'}, list{'de_DE', 1, 3, 6, array<never, never>, null, float(1234567.8912346), '1.234.567,891235'}, list{'de_DE', 3, 3, null, array<never, never>, null, float(1234567.8912346), '123.456.789 %'}, list{'de_DE', 3, 3, 1, array<never, never>, null, float(1234567.8912346), '123.456.789,1 %'}, list{'de_DE', 4, 3, null, array<never, never>, null, float(1234567.8912346), '1,23456789123456E6'}, list{'ru_RU', 1, 3, null, array<never, never>, null, float(1234567.8912346), '1 234 567,891'}, list{'ru_RU', 3, 3, null, array<never, never>, null, float(1234567.8912346), '123 456 789 %'}, list{'ru_RU', 4, 3, null, array<never, never>, null, float(1234567.8912346), '1,23456789123456E6'}, list{'en_US', 1, 3, null, array<never, never>, null, float(1234567.8912346), '1,234,567.891'}, list{'en_US', 3, 3, null, array<never, never>, null, float(1234567.8912346), '123,456,789%'}, list{'en_US', 4, 3, null, array<never, never>, null, float(1234567.8912346), '1.23456789123456E6'}, list{'en_US', 3, 3, null, array{2: 'MINUS'}, null, float(-1234567.8912346), 'MINUS123,456,789%'}, list{'de_DE', 1, 3, 5, array<never, never>, 0, float(1234567.8912346), '1.234.567,89123'}, list{'de_DE', 1, 3, 5, array<never, never>, 0, 1234567, '1.234.567'}}' does not match the declared return type 'array<array-key, array{0: string, 1: int, 2: int, 3: int|null, 4: array<int, string>, 5: float, 6: string}>' for LaminasTest\I18n\View\Helper\NumberFormatTest::numberTestsDataProvider (see https://psalm.dev/128)
|
UnusedBaselineEntry:
src/View/Helper/NumberFormat.php#L1
src/View/Helper/NumberFormat.php:0:0: UnusedBaselineEntry: Baseline for issue "DocblockTypeContradiction" has 3 extra entries. (see https://psalm.dev/316)
|
UnusedBaselineEntry:
src/View/Helper/NumberFormat.php#L1
src/View/Helper/NumberFormat.php:0:0: UnusedBaselineEntry: Baseline for issue "MissingConstructor" has 4 extra entries. (see https://psalm.dev/316)
|
UnusedBaselineEntry:
src/View/Helper/NumberFormat.php#L1
src/View/Helper/NumberFormat.php:0:0: UnusedBaselineEntry: Baseline for issue "MixedArgument" has 1 extra entry. (see https://psalm.dev/316)
|
UnusedBaselineEntry:
src/View/Helper/NumberFormat.php#L1
src/View/Helper/NumberFormat.php:0:0: UnusedBaselineEntry: Baseline for issue "MixedArgumentTypeCoercion" has 1 extra entry. (see https://psalm.dev/316)
|
UnusedBaselineEntry:
src/View/Helper/NumberFormat.php#L1
src/View/Helper/NumberFormat.php:0:0: UnusedBaselineEntry: Baseline for issue "MixedAssignment" has 1 extra entry. (see https://psalm.dev/316)
|