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

Support PHP 8.1 - First batch #29432

Merged
merged 17 commits into from
Nov 23, 2021
Merged

Support PHP 8.1 - First batch #29432

merged 17 commits into from
Nov 23, 2021

Conversation

come-nc
Copy link
Contributor

@come-nc come-nc commented Oct 25, 2021

Related to #29287

@come-nc come-nc added 2. developing Work in progress php Pull requests that update Php code labels Oct 25, 2021
@come-nc come-nc self-assigned this Oct 25, 2021
@come-nc come-nc force-pushed the fix/support-php-8.1 branch 4 times, most recently from 3b00e23 to 44a818d Compare October 26, 2021 10:12
@come-nc come-nc changed the title Support PHP 8.1 Support PHP 8.1 - First batch Oct 26, 2021
@come-nc come-nc force-pushed the fix/support-php-8.1 branch from 44a818d to 28ce215 Compare October 26, 2021 12:13
@come-nc come-nc marked this pull request as ready for review October 26, 2021 12:19
@come-nc come-nc requested review from a team, nickvergessen, PVince81 and skjnldsv and removed request for a team October 26, 2021 12:20
@come-nc
Copy link
Contributor Author

come-nc commented Oct 26, 2021

This is a first batch that can be merged.
This does not fix support for 8.1 yet which is why I removed the commit allowing to run nextcloud on 8.1.
This does fix image tests on PHP 8.0 which are now enabled.
It also fixes psalm errors.
The main focus was on core here, next PR will be focused on apps.

Copy link
Member

@CarlSchwan CarlSchwan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice code cleaning :)

@skjnldsv skjnldsv added this to the Nextcloud 24 milestone Oct 26, 2021
@skjnldsv
Copy link
Member

Not for 23 though, too much changes I think

@come-nc come-nc added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Oct 26, 2021
@come-nc come-nc force-pushed the fix/support-php-8.1 branch from 28ce215 to c496954 Compare November 2, 2021 10:04
First round of modifications for PHP 8.1

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Since 1.7.0 and 2.0 these functions are turned into static methods.
See https://github.com/guzzle/psr7#upgrading-from-function-api

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>
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>
…xpressionBuilder::literal

This fixes PHP errors about passing null to PDO::quote second parameter.
We may want to change IExpressionBuilder as well?

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3. to review Waiting for reviews php Pull requests that update Php code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants