Skip to content

Fix deprecations warnings showing in test output - #66967

Merged
nickvergessen merged 9 commits into
masterfrom
fix/fix-deprecations-warnings
Nov 24, 2026
Merged

nickvergessen merged 9 commits into
masterfrom
fix/fix-deprecations-warnings

Conversation

@come-nc

@come-nc come-nc commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor
  • Resolves: #

Summary

Test output show deprecation warning on recent PHP versions, so let’s fix those.

Those are not fixed because they are from dependencies:

2 tests triggered 3 PHP deprecations:

1) /home/runner/actions-runner/_work/server/server/3rdparty/pear/archive_tar/Archive/Tar.php:188
Returning a value from a constructor is deprecated

Triggered by:

* Test\InstallerTest::testDownloadAppWithMoreThanOneFolderDownloaded
  /home/runner/actions-runner/_work/server/server/tests/lib/InstallerTest.php:350

2) /home/runner/actions-runner/_work/server/server/3rdparty/pear/archive_tar/Archive/Tar.php:216
Returning a value from a constructor is deprecated

Triggered by:

* Test\InstallerTest::testDownloadAppWithMoreThanOneFolderDownloaded
  /home/runner/actions-runner/_work/server/server/tests/lib/InstallerTest.php:350

3) /home/runner/actions-runner/_work/server/server/3rdparty/guzzlehttp/promises/src/Is.php:10
Using "is" as a class name is deprecated since 8.6

Triggered by:

* Test\User\ManagerTest::testRecentlyActive
  /home/runner/actions-runner/_work/server/server/tests/lib/User/ManagerTest.php:605

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
I see no real reason to apply locale-specific comparison in those
 array_unique calls, so simply removing it.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added this to the Nextcloud 36 milestone Nov 23, 2026
@come-nc come-nc self-assigned this Nov 23, 2026
@come-nc come-nc added the 2. developing Work in progress label Nov 23, 2026
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
…tName

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>
The handlers are already callables anyway, so no need to set an object.

Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
@come-nc come-nc added 3. to review Waiting for reviews and removed 2. developing Work in progress labels Nov 24, 2026
@come-nc
come-nc marked this pull request as ready for review November 24, 2026 10:28
@come-nc
come-nc requested review from Altahrim, CarlSchwan, GhassenKefi, artonge and pabzm and removed request for a team November 24, 2026 10:28
@nickvergessen
nickvergessen merged commit f173fc2 into master Nov 24, 2026
187 of 197 checks passed
@nickvergessen
nickvergessen deleted the fix/fix-deprecations-warnings branch November 24, 2026 12:11
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants