Skip to content
Closed
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
Make adjustments based on the review
Signed-off-by: Hamid Dehnavi <[email protected]>
  • Loading branch information
shdehnavi committed Jul 24, 2023
commit aca7255dc53fb649fc6e1dcad56d6f3a40c61ea9
4 changes: 2 additions & 2 deletions lib/private/Remote/Instance.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,10 @@ public function getVersion(): ?string {
}

/**
* @return string 'http' or 'https'
* @return string|null 'http' or 'https'

Check failure

Code scanning / Psalm

ImplementedReturnTypeMismatch

The inherited return type 'string' for OCP\Remote\IInstance::getProtocol is different to the implemented return type for OC\Remote\Instance::getprotocol 'null|string'
* @throws NotFoundException
*/
public function getProtocol(): string {
public function getProtocol(): ?string {
$status = $this->getStatus();
return $status['protocol'];
}
Expand Down