Skip to content

Commit

Permalink
stay compatible with PHP 7.3
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <[email protected]>
  • Loading branch information
Julien Veyssier committed Aug 29, 2022
1 parent cd90e9c commit bb94188
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## 1.0.7 – 2022-08-24
## 1.0.8 – 2022-08-24
### Added
- admin option to use a popup during the OAuth flow rather than a redirect

Expand Down
2 changes: 1 addition & 1 deletion appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>Google integration</name>
<summary>Import Google data into Nextcloud</summary>
<description><![CDATA[Google integration allows you to automatically import your Google calendars, contacts, photos and files into Nextcloud.]]></description>
<version>1.0.7</version>
<version>1.0.8</version>
<licence>agpl</licence>
<author>Julien Veyssier</author>
<namespace>Google</namespace>
Expand Down
5 changes: 4 additions & 1 deletion lib/Controller/ConfigController.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,10 @@ class ConfigController extends Controller {
const CALENDAR_SCOPE = 'https://www.googleapis.com/auth/calendar.readonly';
const CALENDAR_EVENTS_SCOPE = 'https://www.googleapis.com/auth/calendar.events.readonly';
const PHOTOS_SCOPE = 'https://www.googleapis.com/auth/photoslibrary.readonly';
private IInitialState $initialStateService;
/**
* @var IInitialState
*/
private $initialStateService;

public function __construct($appName,
IRequest $request,
Expand Down
17 changes: 13 additions & 4 deletions lib/Service/UserScopeService.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,19 @@

class UserScopeService {

public function __construct(IUserSession $userSession, IUserManager $userManager) {
$this->userSession = $userSession;
$this->userManager = $userManager;
}
/**
* @var IUserSession
*/
private $userSession;
/**
* @var IUserManager
*/
private $userManager;

public function __construct(IUserSession $userSession, IUserManager $userManager) {
$this->userSession = $userSession;
$this->userManager = $userManager;
}

/**
* Set a valid user in IUserSession since lots of server logic is relying on obtaining
Expand Down

0 comments on commit bb94188

Please sign in to comment.