Skip to content

Commit

Permalink
fix deprecation (>=8.2) ${var} => {$var} which is causing deprecation…
Browse files Browse the repository at this point in the history
… messages (#14)

Co-authored-by: Alex Hernández <stratdes@Mac-Pro-de-Alex.local>
  • Loading branch information
stratdes and Alex Hernández authored Aug 16, 2024
1 parent 03f76c3 commit 87767d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/VaultPHP/Response/MetaData.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 87767d6

Please sign in to comment.