From efb7309db81b45e210bcbfc6f7943b5ba3e109b2 Mon Sep 17 00:00:00 2001 From: Alex Date: Mon, 20 Jan 2025 10:10:51 +0200 Subject: [PATCH] Replaced short array syntax usages with traditional array syntax --- tests/Selenium2Config.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/Selenium2Config.php b/tests/Selenium2Config.php index 38b7f1bc..b40cbb57 100644 --- a/tests/Selenium2Config.php +++ b/tests/Selenium2Config.php @@ -51,9 +51,9 @@ public function mapRemoteFilePath($file): string public function skipMessage($testCase, $test): ?string { - $testCallback = [$testCase, $test]; + $testCallback = array($testCase, $test); - if ([Html5Test::class, 'testHtml5Types'] === $testCallback) { + if (array(Html5Test::class, 'testHtml5Types') === $testCallback) { return <<getSeleniumMajorVersion() === 2) { @@ -89,7 +89,7 @@ public function skipMessage($testCase, $test): ?string } // Skip right-clicking tests, when an unsupported Selenium version detected. - if (([HoverTest::class, 'testRightClickHover'] === $testCallback || [EventsTest::class, 'testRightClick'] === $testCallback) + if ((array(HoverTest::class, 'testRightClickHover') === $testCallback || array(EventsTest::class, 'testRightClick') === $testCallback) && !$this->isRightClickingInSeleniumSupported() ) { return <<isSeleniumVersionSupported() ) { return 'Does not apply to unsupported Selenium versions.';