Skip to content

Commit ea7d9a1

Browse files
committed
Update index.php
1 parent 5e50ee7 commit ea7d9a1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

index.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,6 @@
1212
use RobiNN\Pca\Http;
1313
use RobiNN\Pca\Template;
1414

15-
if (PHP_VERSION_ID < 80200) {
16-
exit('<strong>PHP >= 8.2 is required.</strong><br>The current version of php is: '.PHP_VERSION);
17-
}
18-
1915
// Always display errors
2016
ini_set('display_errors', 'On');
2117
ini_set('display_startup_errors', 'On');
@@ -45,7 +41,7 @@
4541
$tpl = new Template();
4642
$admin = new Admin($tpl);
4743

48-
$nav = array_map(static fn ($d_dashboard) => $d_dashboard->dashboardInfo(), $admin->dashboards);
44+
$nav = array_map(static fn ($d_dashboard): array => $d_dashboard->dashboardInfo(), $admin->dashboards);
4945

5046
$current = $admin->currentDashboard();
5147
$dashboard = $admin->getDashboard($current);

0 commit comments

Comments
 (0)