Skip to content

Commit

Permalink
fix deprecated classname
Browse files Browse the repository at this point in the history
  • Loading branch information
bshaffer committed Dec 11, 2024
1 parent 2ec93dc commit 628fa3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/src/ServiceBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(

Check failure on line 369 in Core/src/ServiceBuilder.php

View workflow job for this annotation

GitHub Actions / PHPStan Static Analysis

Call to sprintf contains 1 placeholder, 0 values given.
'This method is no longer supported, create %s directly instead.'.
Expand Down

0 comments on commit 628fa3e

Please sign in to comment.