From cc75fbc1fe29dbb6b6739c80eaf9b33bf1d0531c Mon Sep 17 00:00:00 2001 From: "hubert.lenoir" Date: Sat, 22 Nov 2025 23:21:13 +0100 Subject: [PATCH] ci: fix PHPStan --- src/Context/RestContext.php | 2 +- src/Extension.php | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) 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