Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 19 additions & 18 deletions web/composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 2 additions & 7 deletions web/install/pages/page.3.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,20 +52,15 @@
// PHP requirements
$phpRows = [];

// PHPStan sees the analyser's PHP_VERSION as a fixed string (the
// container is locked to 8.5+) so the `version_compare(...)` here
// looks always-true to it. The check still has runtime value: a
// self-hoster on PHP 8.4 hitting this surface is exactly who needs
// the "you're on too old a version" feedback.
// Runtime gate for self-hosters below the PHP 8.5 floor. The analyser
// environment is locked to 8.5+, so this branch is not exercised there.
$phpVersionOk = version_compare(PHP_VERSION, '8.5', '>=');
$phpRows[] = [
'label' => 'PHP version',
'required' => '8.5 or newer',
// @phpstan-ignore ternary.alwaysTrue
'status' => $phpVersionOk ? 'ok' : 'err',
'detail' => PHP_VERSION,
];
// @phpstan-ignore booleanNot.alwaysFalse
if (!$phpVersionOk) {
$errors++;
}
Expand Down
Loading