From 628fa3e69afa59b1fa1e9e0dab3a9a8803775ae5 Mon Sep 17 00:00:00 2001 From: Brent Shaffer Date: Wed, 11 Dec 2024 12:50:48 -0800 Subject: [PATCH] fix deprecated classname --- Core/src/ServiceBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/ServiceBuilder.php b/Core/src/ServiceBuilder.php index f488a6082dd..aa994bbbd9d 100644 --- a/Core/src/ServiceBuilder.php +++ b/Core/src/ServiceBuilder.php @@ -364,7 +364,7 @@ public function vision(array $config = []) public function translate(array $config = []) { if (class_exists(DeprecatedTranslateClient::class)) { - return $this->createClient(TranslateClient::class, 'translate', $config); + return $this->createClient(DeprecatedTranslateClient::class, 'translate', $config); } throw new \BadMethodCallException(sprintf( 'This method is no longer supported, create %s directly instead.'.