Fix tests #176
Annotations
14 errors and 2 warnings
Run phpstan:
src/View/Helper/CrudViewHelper.php#L250
Method CrudView\View\Helper\CrudViewHelper::formatEnum() should return string but returns int|string.
|
Run phpstan
Process completed with exit code 1.
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run psalm:
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)
|
Run phpcs:
src/Listener/ViewSearchListener.php#L191
Missing doc comment for function getPlaceholder()
|
Run phpcs
Process completed with exit code 1.
|
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/.
|
Run phpcs:
src/View/Helper/CrudViewHelper.php#L244
@param type hint is not formatted properly, expected "\UnitEnum|\BackedEnum|string|int"
|
Loading