Skip to content

Commit 7496642

Browse files
committed
Fixes
1 parent c3dda9a commit 7496642

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Helpers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ public static function getServerTitle(array $server): string {
201201
* @param array<int, array<string, int|string>> $servers
202202
*/
203203
public static function serverSelector(Template $template, array $servers, int $selected): string {
204-
$options = array_map(static fn ($server) => self::getServerTitle($server), $servers);
204+
$options = array_map(static fn ($server): string => self::getServerTitle($server), $servers);
205205

206206
return $template->render('components/select', [
207207
'id' => 'server_select',

tests/Dashboards/APCuTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class APCuTest extends TestCase {
2121
private APCuDashboard $dashboard;
2222

2323
public static function setUpBeforeClass(): void {
24-
if (!ini_get('apc.enable_cli')) {
24+
if (ini_get('apc.enable_cli') !== '1') {
2525
self::markTestSkipped('APC CLI is not enabled. Skipping all tests.');
2626
}
2727
}

0 commit comments

Comments
 (0)