From d7d77d6ccb64cadc10f15a37cf1668c45e9e30df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Hern=C3=A1ndez?= Date: Fri, 16 Aug 2024 09:06:05 +0200 Subject: [PATCH] fix deprecation (>=8.2) ${var} => {$var} which is causing deprecation messages --- src/VaultPHP/Response/MetaData.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/VaultPHP/Response/MetaData.php b/src/VaultPHP/Response/MetaData.php index 878c58c..746ffa6 100644 --- a/src/VaultPHP/Response/MetaData.php +++ b/src/VaultPHP/Response/MetaData.php @@ -129,7 +129,7 @@ public function containsError($error) { foreach ($this->getErrors() as $apiError) { /** @var string $errorMessage */ foreach ($error as $errorMessage) { - if (preg_match("#${errorMessage}#i", $apiError)) { + if (preg_match("#{$errorMessage}#i", $apiError)) { return true; } }