diff --git a/Magento/Mtf/Client/Element/SelectElement.php b/Magento/Mtf/Client/Element/SelectElement.php index b397bd8..3f10f29 100644 --- a/Magento/Mtf/Client/Element/SelectElement.php +++ b/Magento/Mtf/Client/Element/SelectElement.php @@ -91,7 +91,7 @@ public function dragAndDrop(ElementInterface $target) */ protected function escapeQuotes($toEscape) { - if (strpos($toEscape, '"') !== false && strpos($toEscape, "'" != false)) { + if (strpos($toEscape, '"') !== false && strpos($toEscape, "'") !== false) { $subStrings = explode('"', $toEscape); $escaped = "concat("; $first = true; @@ -106,7 +106,7 @@ protected function escapeQuotes($toEscape) return $escaped; } - if (strpos($toEscape, '"' !== false)) { + if (strpos($toEscape, '"') !== false) { return sprintf("'%s'", $toEscape); } diff --git a/composer.json b/composer.json index e4d0622..047353f 100755 --- a/composer.json +++ b/composer.json @@ -5,7 +5,7 @@ "keywords": ["automation", "magento", "testing"], "license": "OSL-3.0", "require": { - "php": ">=5.4.0|~7.2.0", + "php": "~7.1.0||~7.2.0||~7.3.0", "phpunit/phpunit": "~6.5.0", "phpunit/phpunit-selenium": "~4.1.0", "symfony/console": "~4.1.0",