From 990042f1c81e32d1ff519115a7b28651cafaa140 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 9 Jan 2025 14:08:04 +1300 Subject: [PATCH] ENH Remove code that had been retained for backwards compatibility The only way that code would be triggered is if someone is calling this method _directly_ rather than via a behat feature, which is extremely unlikely. --- src/Context/BasicContext.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/Context/BasicContext.php b/src/Context/BasicContext.php index 0001ed11..f57ae454 100644 --- a/src/Context/BasicContext.php +++ b/src/Context/BasicContext.php @@ -1332,11 +1332,6 @@ protected function logException(Exception $exception) */ public function iShouldSeeTheElement($not, $cssSelector = '') { - // backwards compatibility for when function signature was just ($cssSelector) - if (!in_array($not, ['', ' not'])) { - $not = ''; - $cssSelector = $not; - } $sel = str_replace('"', '\\"', $cssSelector ?? ''); $js = <<