Skip to content

Commit

Permalink
Fix psalm errors
Browse files Browse the repository at this point in the history
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
  • Loading branch information
shdehnavi committed Dec 11, 2023
1 parent 5e043f9 commit 7bfd837
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/private/OCS/Provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ public function __construct($appName,
\OCP\IRequest $request,
\OCP\App\IAppManager $appManager) {
parent::__construct($appName, $request);
$this->appManager = $appManager;
}

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/private/OCS/Result.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ class Result {
protected int $statusCode;

/** @var integer */
protected int $items;
protected $items;

/** @var integer */
protected int $perPage;
protected $perPage;

/** @var array */
private array $headers = [];
Expand Down Expand Up @@ -136,7 +136,7 @@ public function succeeded(): bool {
* @param string $value The value, null will delete it
* @return $this
*/
public function addHeader(string $name, string $value): static {
public function addHeader(string $name, ?string $value): static {
$name = trim($name); // always remove leading and trailing whitespace
// to be able to reliably check for security
// headers
Expand Down

0 comments on commit 7bfd837

Please sign in to comment.