Skip to content
This repository has been archived by the owner on Dec 3, 2019. It is now read-only.

Commit

Permalink
Fix easy items reported by PHP phan
Browse files Browse the repository at this point in the history
  • Loading branch information
phil-davis committed Jun 24, 2019
1 parent cba11fe commit 73a0efd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/Controller/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function __construct($appName,

/**
* @param IUser $user
* @param array $userGroups
* @param array|null $userGroups
* @return array
*/
private function formatUserForIndex(IUser $user, array $userGroups = null) {
Expand Down
2 changes: 1 addition & 1 deletion lib/Exception/UserTokenMismatchException.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@

class UserTokenMismatchException extends UserTokenException {
public function __construct($message = "", $code = 0, \Exception $previous = null) {
$this->previousException = $this;
$this->previous = $this;
parent::__construct($message, $code, $previous);
}
}
4 changes: 2 additions & 2 deletions lib/MetaData.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class MetaData {
protected $metaData = [];
/** @var \OCP\IGroupManager */
protected $groupManager;
/** @var bool */
protected $sorting = false;
/** @var int */
protected $sorting = self::SORT_NONE;
/** @var IUserSession */
protected $userSession;

Expand Down

0 comments on commit 73a0efd

Please sign in to comment.