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
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down