diff --git a/CHANGELOG.md b/CHANGELOG.md index 3840f25..e9369af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## NOT RELEASED +### Changed + +- Enable compiler optimization for the `sprintf` function. + ## 1.1.3 ### Changed diff --git a/src/Input/DetectDominantLanguageRequest.php b/src/Input/DetectDominantLanguageRequest.php index ec1fc80..06720ac 100644 --- a/src/Input/DetectDominantLanguageRequest.php +++ b/src/Input/DetectDominantLanguageRequest.php @@ -83,7 +83,7 @@ private function requestBody(): array { $payload = []; if (null === $v = $this->text) { - throw new InvalidArgument(sprintf('Missing parameter "Text" for "%s". The value cannot be null.', __CLASS__)); + throw new InvalidArgument(\sprintf('Missing parameter "Text" for "%s". The value cannot be null.', __CLASS__)); } $payload['Text'] = $v;