diff --git a/src/Context/RestContext.php b/src/Context/RestContext.php index 1665b97d..97a201d7 100644 --- a/src/Context/RestContext.php +++ b/src/Context/RestContext.php @@ -50,7 +50,7 @@ public function iSendARequestToWithParameters($method, $url, TableNode $data) throw new \Exception("You must provide a 'key' and 'value' column in your table node."); } - if (\is_string($row['value']) && '@' == substr($row['value'], 0, 1)) { + if (str_starts_with($row['value'], '@')) { $files[$row['key']] = rtrim($this->getMinkParameter('files_path'), \DIRECTORY_SEPARATOR).\DIRECTORY_SEPARATOR.substr($row['value'], 1); } else { $parameters[$row['key']] = $row['value']; diff --git a/src/Extension.php b/src/Extension.php index 92a1d92b..3b619597 100644 --- a/src/Extension.php +++ b/src/Extension.php @@ -20,9 +20,6 @@ public function getConfigKey() public function initialize(ExtensionManager $extensionManager): void { - if (\PHP_MAJOR_VERSION === 5) { - @trigger_error('The behatch context extension will drop support for PHP 5 in version 4.0', \E_USER_DEPRECATED); - } } public function process(ContainerBuilder $container): void