From 87767d6ed37f29eeeeffd36e42780a11d653244f Mon Sep 17 00:00:00 2001 From: Alex Hernandez Date: Fri, 16 Aug 2024 10:32:42 +0200 Subject: [PATCH] fix deprecation (>=8.2) ${var} => {$var} which is causing deprecation messages (#14) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Alex Hernández --- 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; } }