diff --git a/wcfsetup/install/files/lib/http/middleware/CheckSystemEnvironment.class.php b/wcfsetup/install/files/lib/http/middleware/CheckSystemEnvironment.class.php index 3d40f0025b1..07629b9020a 100644 --- a/wcfsetup/install/files/lib/http/middleware/CheckSystemEnvironment.class.php +++ b/wcfsetup/install/files/lib/http/middleware/CheckSystemEnvironment.class.php @@ -26,9 +26,9 @@ final class CheckSystemEnvironment implements MiddlewareInterface */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { - if (!RequestHandler::getInstance()->isACPRequest()) { - // @phpstan-ignore smallerOrEqual.alwaysTrue, smallerOrEqual.alwaysTrue, booleanAnd.alwaysTrue - if (!(80100 <= \PHP_VERSION_ID && \PHP_VERSION_ID <= 80499)) { + // @phpstan-ignore smallerOrEqual.alwaysTrue, smallerOrEqual.alwaysTrue, booleanAnd.alwaysTrue + if (!(80100 <= \PHP_VERSION_ID && \PHP_VERSION_ID <= 80499)) { + if (!RequestHandler::getInstance()->isACPRequest()) { return new HtmlResponse( (new HtmlErrorRenderer())->render( WCF::getLanguage()->getDynamicVariable('wcf.global.error.title'), diff --git a/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php b/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php index b80cc38471c..abcae07daee 100644 --- a/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php +++ b/wcfsetup/install/files/lib/system/acp/dashboard/box/StatusMessageAcpDashboardBox.class.php @@ -79,7 +79,7 @@ private function getBasicMessages(): array { $messages = []; // @phpstan-ignore smallerOrEqual.alwaysTrue, smallerOrEqual.alwaysTrue, booleanAnd.alwaysTrue - if (!(80100 <= PHP_VERSION_ID && PHP_VERSION_ID <= 80499)) { + if (!(80100 <= \PHP_VERSION_ID && \PHP_VERSION_ID <= 80499)) { $messages[] = new StatusMessage( StatusMessageType::Error, WCF::getLanguage()->getDynamicVariable('wcf.global.incompatiblePhpVersion')