We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b730036 + 05347c2 commit a0a2b72Copy full SHA for a0a2b72
1 file changed
src/EditorconfigChecker/Utilities.php
@@ -11,17 +11,17 @@ public static function getCurrentArch(): string
11
{
12
$arch = php_uname('m');
13
14
- if ($arch === "x86_64") {
15
- $arch = "amd64";
16
- } elseif ($arch === "i386") {
17
- $arch = "386";
18
- } else {
19
- // TODO: Whats here?
20
- printf('ERROR: Unexpected, please contact the maintainer or provide a pull request :)%s', PHP_EOL);
21
- exit(1);
+ switch ($arch) {
+ case 'x86_64':
+ return "amd64";
+ case 'i386':
+ return "386";
+ case 'aarch64':
+ return "arm64";
+ default:
22
+ printf('ERROR: Unexpected, please contact the maintainer or provide a pull request :)%s', PHP_EOL);
23
+ exit(1);
24
}
-
- return $arch;
25
26
27
/**
0 commit comments