diff --git a/src/OperatingSystem.php b/src/OperatingSystem.php index 6ab4fd0..ecc6f6f 100644 --- a/src/OperatingSystem.php +++ b/src/OperatingSystem.php @@ -59,7 +59,7 @@ public static function chromeVersionCommands(string $operatingSystem): array { $commands = static::$platforms[$operatingSystem]['commands'] ?? null; - if (is_null($commands)) { + if (\is_null($commands)) { throw new InvalidArgumentException("Unable to find commands for Operating System [{$operatingSystem}]"); } @@ -73,7 +73,7 @@ public static function chromeDriverBinary(string $operatingSystem): string { $binary = static::$platforms[$operatingSystem]['binary'] ?? null; - if (is_null($binary)) { + if (\is_null($binary)) { throw new InvalidArgumentException("Unable to find ChromeDriver binary for Operating System [{$operatingSystem}]"); } @@ -89,11 +89,11 @@ public static function chromeDriverSlug(string $operatingSystem, $version = null { $slug = static::$platforms[$operatingSystem]['slug'] ?? null; - if (is_null($slug)) { + if (\is_null($slug)) { throw new InvalidArgumentException("Unable to find ChromeDriver slug for Operating System [{$operatingSystem}]"); } - if (! is_null($version) && version_compare($version, '115.0', '<')) { + if (! \is_null($version) && version_compare($version, '115.0', '<')) { if ($slug === 'mac-arm64') { return version_compare($version, '106.0.5249', '<') ? 'mac64_m1' : 'mac_arm64'; } elseif ($slug === 'mac-x64') { diff --git a/tests/OperatingSystemTest.php b/tests/OperatingSystemTest.php index 964452e..7e76bc6 100644 --- a/tests/OperatingSystemTest.php +++ b/tests/OperatingSystemTest.php @@ -9,7 +9,7 @@ class OperatingSystemTest extends TestCase { public function test_it_matches_possible_os() { - $this->assertTrue(in_array(OperatingSystem::id(), OperatingSystem::all())); + $this->assertTrue(\in_array(OperatingSystem::id(), OperatingSystem::all())); } public function test_it_has_correct_os()