fix(files): Add new NoteReferenceProvider #43
psalm-matrix.yml
on: pull_request
matrix
10s
Matrix: static-analysis
static-psalm-analysis-summary
4s
Annotations
16 errors
RiskyTruthyFalsyComparison:
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)
|
PossiblyNullArgument:
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)
|
static-psalm-analysis dev-stable28
Process completed with exit code 2.
|
RiskyTruthyFalsyComparison:
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)
|
PossiblyNullArgument:
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)
|
static-psalm-analysis dev-stable29
Process completed with exit code 2.
|
MoreSpecificReturnType:
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)
|
LessSpecificReturnStatement:
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)
|
RiskyTruthyFalsyComparison:
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)
|
PossiblyNullArgument:
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)
|
ArgumentTypeCoercion:
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)
|
static-psalm-analysis dev-master
Process completed with exit code 2.
|
RiskyTruthyFalsyComparison:
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)
|
PossiblyNullArgument:
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)
|
static-psalm-analysis dev-stable30
Process completed with exit code 2.
|
static-psalm-analysis-summary
Process completed with exit code 1.
|