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

fix(setupcheck): Update setup check for PHP version to be more accurate #50735

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nickvergessen
Copy link
Member

Despite this being a language change, I'd still backport it, to avoid confusion before and during updates.
Should also backport to 30 and 31

Checklist

@nickvergessen nickvergessen added the 3. to review Waiting for reviews label Feb 8, 2025
@nickvergessen nickvergessen added this to the Nextcloud 32 milestone Feb 8, 2025
@nickvergessen nickvergessen self-assigned this Feb 8, 2025
@nickvergessen
Copy link
Member Author

/backport to stable31

@nickvergessen
Copy link
Member Author

/backport to stable30

@nickvergessen nickvergessen force-pushed the bugfix/noid/bump-php-dependency-update-versions branch from bef5b6b to c3fc42e Compare February 8, 2025 11:27
@@ -29,7 +34,13 @@ public function getName(): string {

public function run(): SetupResult {
if (PHP_VERSION_ID < 80200) {
return SetupResult::warning($this->l10n->t('You are currently running PHP %s. PHP 8.1 is now deprecated in Nextcloud 30. Nextcloud 31 may require at least PHP 8.2. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [PHP_VERSION]), 'https://secure.php.net/supported-versions.php');
return SetupResult::warning($this->l10n->t('You are currently running PHP %s. PHP %s is deprecated since Nextcloud %d. Nextcloud %s may require at least PHP %s. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [
Copy link
Contributor

@susnux susnux Feb 8, 2025

Choose a reason for hiding this comment

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

Suggested change
return SetupResult::warning($this->l10n->t('You are currently running PHP %s. PHP %s is deprecated since Nextcloud %d. Nextcloud %s may require at least PHP %s. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [
return SetupResult::warning($this->l10n->t('You are currently running PHP %1$s. PHP %2$s is deprecated since Nextcloud %3$d. Nextcloud %4$s may require at least PHP %5$s. Please upgrade to one of the officially supported PHP versions provided by the PHP Group as soon as possible.', [

Copy link
Contributor

Choose a reason for hiding this comment

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

Two placeholders in one sentence seems risky to me without positional placeholders.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants