Skip to content

Commit

Permalink
fix: cast the replaced value as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Yokann committed Jul 27, 2023
1 parent c00c1f3 commit 43d0344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ private function replaceConfigPlaceholder($event, $eventName, $string)
if ((preg_match_all('/<([^>]*)>/', $string, $matches) > 0) and ($this->propertyAccessor !== null)) {
$tokens = $matches[1];
foreach ($tokens as $token) {
$value = $this->propertyAccessor->getValue($event, $token);
$value = (string) $this->propertyAccessor->getValue($event, $token);
$string = str_replace('<'.$token.'>', $value, $string);
}
}
Expand Down

0 comments on commit 43d0344

Please sign in to comment.