Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop PHP 7.4 on master #34997

Merged
merged 24 commits into from
Jan 20, 2023
Merged

Drop PHP 7.4 on master #34997

merged 24 commits into from
Jan 20, 2023

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Nov 7, 2022

Starting with 26 we will no longer support PHP 7.4
Bump the minimum version and start removing workaround specific to PHP 7.4

Parent issue: #35025

@come-nc come-nc added the 2. developing Work in progress label Nov 7, 2022
@come-nc come-nc added this to the Nextcloud 26 milestone Nov 7, 2022
@come-nc come-nc self-assigned this Nov 7, 2022
@@ -470,8 +470,7 @@
*/
protected function isValidPrivateKey($plainKey) {
$res = openssl_get_privatekey($plainKey);
// TODO: remove resource check one php7.4 is not longer supported
if (is_resource($res) || (is_object($res) && get_class($res) === 'OpenSSLAsymmetricKey')) {
if (is_object($res) && get_class($res) === 'OpenSSLAsymmetricKey') {

Check notice

Code scanning / Psalm

TypeDoesNotContainType

"OpenSSLAsymmetricKey" cannot be identical to class-string<empty>
@@ -160,11 +160,11 @@
/**
* Generates a new private key
*
* @return resource
* @return \OpenSSLAsymmetricKey|false

Check failure

Code scanning / Psalm

UndefinedDocblockClass

Docblock-defined class, interface or enum named OpenSSLAsymmetricKey does not exist
\OC_JSON::error(['message' => $l->t('No data specified')]);
exit;
}
if (is_array($key)) {
\OC_JSON::error(['message' => $l->t('Invalid data specified')]);

Check notice

Code scanning / Psalm

DeprecatedMethod

The method OC_JSON::error has been marked as deprecated
@come-nc
Copy link
Contributor Author

come-nc commented Nov 8, 2022

ref #35025

@come-nc come-nc mentioned this pull request Dec 12, 2022
@come-nc come-nc force-pushed the fix/drop-php-7.4 branch 2 times, most recently from 3deaae5 to f3a7d32 Compare December 13, 2022 09:48
@come-nc

This comment was marked as outdated.

@come-nc
Copy link
Contributor Author

come-nc commented Dec 13, 2022

@icewind1991 Would you be able to publish icewind1991/samba-krb-test-apache with PHP 8 so that CI using that can run?

@come-nc

This comment was marked as outdated.

@come-nc

This comment was marked as outdated.

@come-nc

This comment was marked as outdated.

@come-nc

This comment was marked as outdated.

@come-nc
Copy link
Contributor Author

come-nc commented Dec 20, 2022

I merged the psalm-* workflows into the static-code-analysis one and it seems to work 👍
Only problem is it appears as «5,022 new alerts including 53 errors» but these are not new, they are the same as before. Not sure how to tell github these are not new.

@come-nc

This comment was marked as outdated.

@ChristophWurst
Copy link
Member

Are there any parts of this PR that you could extract and submit separately?

@skjnldsv
Copy link
Member

Rebased with latest actions changes. This PR should be a bit lighter now :)

@skjnldsv
Copy link
Member

Considering the 891 files in from php cs, we can tackle that as a followup maybe! 🙈

come-nc and others added 9 commits January 20, 2023 11:22
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Joas Schilling <coding@schilljs.com>
It runs on a docker image on which we cannot control which PHP version runs.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc merged commit 37bb33c into master Jan 20, 2023
@come-nc come-nc deleted the fix/drop-php-7.4 branch January 20, 2023 10:43
@come-nc come-nc mentioned this pull request Jan 20, 2023
4 tasks
MichaIng added a commit to MichaIng/DietPi that referenced this pull request Jan 20, 2023
- DietPi-Software | Nextcloud: Assure that Nextcloud 25 is downloaded on Bullseye, since Nextcloud 26 won't support PHP 7.4 anymore: nextcloud/server#34997
raimund-schluessler added a commit to nextcloud/tasks that referenced this pull request Jan 23, 2023
Nextcloud 26 will require PHP 8.0 at least, see nextcloud/server#34997

Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
raimund-schluessler added a commit to raimund-schluessler/inventory that referenced this pull request Jan 23, 2023
Nextcloud 26 will require PHP 8.0 at least, see nextcloud/server#34997
@ChristophWurst ChristophWurst added the pending documentation This pull request needs an associated documentation update label Jan 30, 2023
@DaphneMuller
Copy link

hello @come-nc
Thank you so much for your work on this pull request! This ticket seems to have the tag 'pending documentation'.
Is there any chance you could clarify what documentation is missing? Is this for admins or for app developers?

@come-nc come-nc added 4. to release Ready to be released and/or waiting for tests to finish and removed 2. developing Work in progress labels Feb 21, 2023
@MichaIng
Copy link
Member

At least here the PHP requirements table needs to be adjusted: https://github.com/nextcloud/documentation/blob/master/admin_manual/installation/system_requirements.rst
When touching it already, PHP 8.2 could be added as it is supported with Nextcloud 26.

There are further pages where PHP 7.4 is used as example, which should be updated to 8.1 or 8.2:

@come-nc
Copy link
Contributor Author

come-nc commented Feb 21, 2023

hello @come-nc Thank you so much for your work on this pull request! This ticket seems to have the tag 'pending documentation'. Is there any chance you could clarify what documentation is missing? Is this for admins or for app developers?

nextcloud/documentation#9650

@come-nc
Copy link
Contributor Author

come-nc commented Feb 21, 2023

#34692 (comment)

@come-nc come-nc removed the pending documentation This pull request needs an associated documentation update label Feb 23, 2023
@solracsf solracsf mentioned this pull request Apr 5, 2023
4 tasks
@ChristophWurst ChristophWurst added the pending documentation This pull request needs an associated documentation update label Jun 12, 2023
@ChristophWurst ChristophWurst removed the pending documentation This pull request needs an associated documentation update label Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants