$value ) { if ( is_bool( $value ) ) { $stringValue = $value ? '' : ''; } elseif ( $value === null ) { $stringValue = ''; } else { $stringValue = (string)$value; } $replacements['{' . $placeholder . '}'] = $stringValue; } return strtr( $normalizedMessage, $replacements ); } /** @inheritDoc */ public function getNormalizedMessage(): string { return $this->normalizedMessage; } /** @inheritDoc */ public function getMessageContext(): array { return $this->messageContext; } }