From 8aa358b21515585646ba51437b71f5c8a916bc22 Mon Sep 17 00:00:00 2001 From: Mark Allman Date: Tue, 27 Feb 2024 21:55:35 +0000 Subject: [PATCH] Try to make lint happier --- src/WebDriver/WebDriverCheckbox.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WebDriver/WebDriverCheckbox.php b/src/WebDriver/WebDriverCheckbox.php index 70b93f42..7f28e25f 100644 --- a/src/WebDriver/WebDriverCheckbox.php +++ b/src/WebDriver/WebDriverCheckbox.php @@ -231,7 +231,7 @@ private function byVisibleText($text, $partial = false, $select = true): void private function getRelatedElements($value = null): array { - $valueSelector = ($value !== null) ? sprintf(' and @value = %s', XPathEscaper::escapeQuotes($value)) : ''; + $valueSelector = (null !== $value) ? sprintf(' and @value = %s', XPathEscaper::escapeQuotes($value)) : ''; if (null === $formId = $this->element->getAttribute('form')) { $form = $this->element->findElement(WebDriverBy::xpath('ancestor::form')); if ('' === $formId = (string) $form->getAttribute('id')) {