Skip to content

Add support for introspecting enum #174

Add support for introspecting enum

Add support for introspecting enum #174

Triggered via push March 28, 2024 13:12
Status Failure
Total duration 33s
Artifacts

ci.yml

on: push
Coding Standard & Static Analysis
24s
Coding Standard & Static Analysis
Matrix: testsuite / testsuite-linux
Fit to window
Zoom out
Zoom in

Annotations

18 errors and 6 warnings
testsuite / testsuite-linux (8.1, highest, false)
Process completed with exit code 255.
testsuite / testsuite-linux (8.1, lowest, false)
Process completed with exit code 255.
testsuite / testsuite-linux (8.3, highest, false)
Process completed with exit code 255.
testsuite / testsuite-linux (8.2, highest, false)
Process completed with exit code 255.
Coding Standard & Static Analysis: src/View/Helper/CrudViewHelper.php#L250
Method CrudView\View\Helper\CrudViewHelper::formatEnum() should return string but returns int|string.
Coding Standard & Static Analysis
Process completed with exit code 1.
RiskyTruthyFalsyComparison: src/Dashboard/Module/LinkItem.php#L59
src/Dashboard/Module/LinkItem.php:59:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null|string contains types array<array-key, mixed>|string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/Listener/ViewListener.php#L174
src/Listener/ViewListener.php:174:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|int|null|string contains types array<array-key, mixed>|int|string, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
PossiblyInvalidOperand: src/Listener/ViewSearchListener.php#L154
src/Listener/ViewSearchListener.php:154:17: PossiblyInvalidOperand: Cannot add an array to a non-array ArrayAccess (see https://psalm.dev/163)
RiskyTruthyFalsyComparison: src/View/Cell/TablesListCell.php#L21
src/View/Cell/TablesListCell.php:21:13: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
RiskyTruthyFalsyComparison: src/View/Cell/TablesListCell.php#L28
src/View/Cell/TablesListCell.php:28:18: RiskyTruthyFalsyComparison: Operand of type array<array-key, mixed>|null contains type array<array-key, mixed>, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
PossiblyNullArgument: src/View/Helper/CrudViewHelper.php#L162
src/View/Helper/CrudViewHelper.php:162:29: PossiblyNullArgument: Argument 1 of str_starts_with cannot be null, possibly null value provided (see https://psalm.dev/078)
InvalidReturnType: src/View/Helper/CrudViewHelper.php#L245
src/View/Helper/CrudViewHelper.php:245:16: InvalidReturnType: The declared return type 'string' for CrudView\View\Helper\CrudViewHelper::formatEnum is incorrect, got 'int|string' (see https://psalm.dev/011)
InvalidReturnStatement: src/View/Helper/CrudViewHelper.php#L250
src/View/Helper/CrudViewHelper.php:250:20: InvalidReturnStatement: The inferred type 'int|string' does not match the declared return type 'string' for CrudView\View\Helper\CrudViewHelper::formatEnum (see https://psalm.dev/128)
UnusedBaselineEntry: src/Listener/ViewSearchListener.php#L1
src/Listener/ViewSearchListener.php:0:0: UnusedBaselineEntry: Baseline for issue "PossiblyUndefinedArrayOffset" has 1 extra entry. (see https://psalm.dev/316)
UnusedBaselineEntry: src/View/Widget/DateTimeWidget.php#L1
src/View/Widget/DateTimeWidget.php:0:0: UnusedBaselineEntry: Baseline for issue "PossiblyUndefinedArrayOffset" has 1 extra entry. (see https://psalm.dev/316)
Coding Standard & Static Analysis: src/Listener/ViewSearchListener.php#L191
Missing doc comment for function getPlaceholder()
Coding Standard & Static Analysis
Process completed with exit code 1.
testsuite / testsuite-linux (8.1, highest, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
testsuite / testsuite-linux (8.1, lowest, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
testsuite / testsuite-linux (8.3, highest, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
testsuite / testsuite-linux (8.2, highest, false)
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/cache@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Coding Standard & Static Analysis
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
Coding Standard & Static Analysis: src/View/Helper/CrudViewHelper.php#L244
@param type hint is not formatted properly, expected "\UnitEnum|\BackedEnum|string|int"