fix(files): Add new NoteReferenceProvider #43
Annotations
6 errors
Run coding standards check:
lib/AppInfo/DashboardWidget.php#L98
lib/AppInfo/DashboardWidget.php:98:83: MoreSpecificReturnType: The declared return type 'list<OCP\Dashboard\Model\WidgetItem>' for OCA\Notes\AppInfo\DashboardWidget::getItems is more specific than the inferred return type 'array<array-key, OCP\Dashboard\Model\WidgetItem>' (see https://psalm.dev/070)
|
Run coding standards check:
lib/AppInfo/DashboardWidget.php#L101
lib/AppInfo/DashboardWidget.php:101:10: LessSpecificReturnStatement: The type 'array<array-key, OCP\Dashboard\Model\WidgetItem>' is more general than the declared return type 'list<OCP\Dashboard\Model\WidgetItem>' for OCA\Notes\AppInfo\DashboardWidget::getItems (see https://psalm.dev/129)
|
Run coding standards check:
lib/Reference/NoteReferenceProvider.php#L49
lib/Reference/NoteReferenceProvider.php:49:7: RiskyTruthyFalsyComparison: Operand of type int|null contains type int, which can be falsy and truthy. This can cause possibly unexpected behavior. Use strict comparison instead. (see https://psalm.dev/356)
|
Run coding standards check:
lib/Reference/NoteReferenceProvider.php#L50
lib/Reference/NoteReferenceProvider.php:50:38: PossiblyNullArgument: Argument 1 of OCA\Notes\Service\NotesService::get cannot be null, possibly null value provided (see https://psalm.dev/078)
|
Run coding standards check:
lib/Service/TagService.php#L24
lib/Service/TagService.php:24:56: ArgumentTypeCoercion: Argument 1 of OCP\ITags::getTagsForObjects expects list<int>, but parent type array<array-key, mixed> provided (see https://psalm.dev/193)
|
Run coding standards check
Process completed with exit code 2.
|
Loading