'Foo' ]` as context data. * * @stable to implement */ interface INormalizedException { /** * Returns a normalized version of the error message, with PSR-3 style placeholders. * After replacing the placeholders with their values from the context data, the * result should be equal to getMessage(). * * @return string */ public function getNormalizedMessage(): string; /** * Returns the context data. All placeholders in the normalized message must have a * matching field in the array. Extra fields are allowed. Keys should match * `/[a-zA-Z0-9_.]+/`, as per the PSR-3 spec. Values should be scalars. * * @return (int|float|string|bool)[] */ public function getMessageContext(): array; }