Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix(RestParameterParser): Handle unsupported content-types
Signed-off-by: provokateurin <[email protected]>
  • Loading branch information
provokateurin authored and christianlupus committed Mar 5, 2025
commit 82302a23d291111264df786dd18abf5285f6c8ef
2 changes: 2 additions & 0 deletions lib/Helper/RestParameterParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ public function getParameters(): array {
}

break;
default:
throw new \Exception($this->l->t('Unsupported type of transmitted data. This is a bug, please report it.'));
}
} else {
throw new \Exception($this->l->t('Cannot detect type of transmitted data. This is a bug, please report it.'));
Expand Down
5 changes: 0 additions & 5 deletions tests/psalm-baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@
<code><![CDATA[LockedException]]></code>
</UndefinedDocblockClass>
</file>
<file src="lib/Helper/RestParameterParser.php">
<InvalidReturnType>
<code><![CDATA[array]]></code>
</InvalidReturnType>
</file>
<file src="lib/Helper/UserFolderHelper.php">
<MissingDependency>
<code><![CDATA[$this->root]]></code>
Expand Down