Skip to content

Commit fc8b02b

Browse files
committed
Replace version_compare with numeric comparison
1 parent 835571a commit fc8b02b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ViewRenderer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public static function renderDiagnosticsPage(): void {
3131
$view['memoryLimit'] = ini_get( 'memory_limit' );
3232
$view['options'] = array_values( Options::getAll() );
3333
$view['site_info'] = SiteInfo::getAllInfo();
34-
$view['phpOutOfDate'] = version_compare( PHP_VERSION, '8.1', '<' );
34+
$view['phpOutOfDate'] = PHP_VERSION_ID < 80100;
3535
$view['uploadsWritable'] = SiteInfo::isUploadsWritable();
3636
$view['maxExecutionTime'] = intval( ini_get( 'max_execution_time' ) );
3737
$view['curlSupported'] = SiteInfo::hasCURLSupport();

0 commit comments

Comments
 (0)