Skip to content

Commit d41c81a

Browse files
authored
Merge pull request #473 from asgrim/ensure-aarch64-parsed
Ensure aarch64 is parsed as a valid architecture as arm64
2 parents e8a96bf + c954a3b commit d41c81a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Platform/Architecture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function parseArchitecture(string $architecture): self
2020
{
2121
return match ($architecture) {
2222
'x64', 'x86_64', 'AMD64' => self::x86_64,
23-
'arm64' => self::arm64,
23+
'arm64', 'aarch64' => self::arm64,
2424
default => self::x86,
2525
};
2626
}

test/unit/Platform/ArchitectureTest.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public static function architectureMapProvider(): array
2020
'x86_64' => ['x86_64', Architecture::x86_64],
2121
'AMD64' => ['AMD64', Architecture::x86_64],
2222
'arm64' => ['arm64', Architecture::arm64],
23+
'aarch64' => ['aarch64', Architecture::arm64],
2324
'x86' => ['x86', Architecture::x86],
2425
'something' => ['something', Architecture::x86],
2526
];

0 commit comments

Comments
 (0)