Skip to content

Commit

Permalink
Merge pull request #610 from nextcloud/enh/noid/bumps
Browse files Browse the repository at this point in the history
Support NC 31, drop 24,25 and with it PHP <8.0 support
  • Loading branch information
blizzz authored Jan 17, 2025
2 parents 8f350ca + 25b019c commit 0c39f51
Show file tree
Hide file tree
Showing 33 changed files with 213 additions and 132 deletions.
4 changes: 2 additions & 2 deletions appinfo/info.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
Microsoft Official Documentation: [Deploying Office Online Server](https://docs.microsoft.com/en-us/officeonlineserver/deploy-office-online-server)]]>
</description>

<version>2.3.2</version>
<version>3.0.0</version>
<licence>agpl</licence>

<author>Julius Härtl</author>
Expand All @@ -38,7 +38,7 @@
<screenshot>https://github.com/nextcloud/officeonline/raw/main/screenshot.png</screenshot>

<dependencies>
<nextcloud min-version="24" max-version="30"/>
<nextcloud min-version="26" max-version="31"/>
</dependencies>

<settings>
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"config": {
"sort-packages": true,
"platform": {
"php": "7.4"
"php": "8.0"
}
},
"require": {
Expand All @@ -24,7 +24,7 @@
"test:unit": "phpunit -c tests/phpunit.xml"
},
"require-dev": {
"nextcloud/ocp": "dev-stable24",
"nextcloud/ocp": "dev-stable26",
"nextcloud/coding-standard": "^1.0.0",
"phpunit/phpunit": "^9",
"roave/security-advisories": "dev-latest"
Expand Down
294 changes: 173 additions & 121 deletions composer.lock

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Capabilities.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Command/UpdateEmptyTemplates.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
3 changes: 2 additions & 1 deletion lib/Controller/DocumentController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2014 ownCloud, Inc., Victor Dubiniuk <[email protected]>
Expand Down Expand Up @@ -89,7 +90,7 @@ public function __construct(
LoggerInterface $logger,
\OCA\Officeonline\TemplateManager $templateManager,
FederationService $federationService,
Helper $helper
Helper $helper,
) {
parent::__construct($appName, $request);
$this->uid = $UserId;
Expand Down
3 changes: 2 additions & 1 deletion lib/Controller/FederationController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down Expand Up @@ -30,7 +31,7 @@ public function __construct(
IRequest $request,
IConfig $config,
WopiMapper $wopiMapper,
IManager $shareManager
IManager $shareManager,
) {
parent::__construct($appName, $request);
$this->config = $config;
Expand Down
3 changes: 2 additions & 1 deletion lib/Controller/OCSController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down Expand Up @@ -55,7 +56,7 @@ public function __construct(string $appName,
DirectMapper $directMapper,
IURLGenerator $urlGenerator,
TemplateManager $manager,
FederationService $federationService
FederationService $federationService,
) {
parent::__construct($appName, $request);

Expand Down
3 changes: 2 additions & 1 deletion lib/Controller/SettingsController.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down Expand Up @@ -33,7 +34,7 @@ public function __construct($appName,
IL10N $l10n,
AppConfig $appConfig,
DiscoveryManager $discoveryManager,
LoggerInterface $logger
LoggerInterface $logger,
) {
parent::__construct($appName, $request);
$this->l10n = $l10n;
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/WopiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function __construct(
WopiLockMapper $lockMapper,
ITimeFactory $timeFactory,
WopiLockHooks $lockHooks,
ILockManager $lockManager
ILockManager $lockManager,
) {
parent::__construct($appName, $request);
$this->rootFolder = $rootFolder;
Expand Down
1 change: 1 addition & 0 deletions lib/Db/Direct.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Db/DirectMapper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Db/Wopi.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Db/WopiMapper.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Listener/SharingLoadAdditionalScriptsListener.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Middleware/WOPIMiddleware.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/PermissionManager.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Preview/MSExcel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2018 Collabora Productivity
Expand Down
1 change: 1 addition & 0 deletions lib/Preview/MSWord.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2018 Collabora Productivity
Expand Down
1 change: 1 addition & 0 deletions lib/Preview/OOXML.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2018 Collabora Productivity
Expand Down
1 change: 1 addition & 0 deletions lib/Preview/Office.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2018 Collabora Productivity
Expand Down
1 change: 1 addition & 0 deletions lib/Preview/OpenDocument.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2018 Collabora Productivity
Expand Down
1 change: 1 addition & 0 deletions lib/Preview/Pdf.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Service/CapabilitiesService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Service/FederationService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/Service/UserScopeService.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2019 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
3 changes: 2 additions & 1 deletion lib/Settings/Admin.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand All @@ -23,7 +24,7 @@ class Admin implements ISettings {
public function __construct(
IConfig $config,
AppConfig $appConfig,
TemplateManager $manager
TemplateManager $manager,
) {
$this->config = $config;
$this->appConfig = $appConfig;
Expand Down
1 change: 1 addition & 0 deletions lib/Settings/Section.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
3 changes: 2 additions & 1 deletion lib/TokenManager.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down Expand Up @@ -68,7 +69,7 @@ public function __construct(
IL10N $trans,
IUserManager $userManager,
IGroupManager $groupManager,
Helper $helper
Helper $helper,
) {
$this->rootFolder = $rootFolder;
$this->shareManager = $shareManager;
Expand Down
1 change: 1 addition & 0 deletions lib/WOPI/DiscoveryManager.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions lib/WOPI/Parser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down
1 change: 1 addition & 0 deletions tests/lib/PermissionManagerTest.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

/**
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
Expand Down

0 comments on commit 0c39f51

Please sign in to comment.