Skip to content

Add code

Add code #11

Triggered via push August 17, 2024 08:05
Status Failure
Total duration 35s
Artifacts

phpstan.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors
phpstan: src/LaravelTranslatorsServiceProvider.php#L21
Class DeepL\Translator not found.
phpstan: src/LaravelTranslatorsServiceProvider.php#L21
Instantiated class DeepL\Translator not found.
phpstan: src/Translators/DeepLTranslator.php#L11
Parameter $translator of method Datashaman\LaravelTranslators\Translators\DeepLTranslator::__construct() has invalid type DeepL\Translator.
phpstan: src/Translators/DeepLTranslator.php#L11
Property Datashaman\LaravelTranslators\Translators\DeepLTranslator::$translator has unknown class DeepL\Translator as its type.
phpstan: src/Translators/DeepLTranslator.php#L19
Call to method translateText() on an unknown class DeepL\Translator.
phpstan: src/Translators/GoogleTranslator.php#L12
Parameter $client of method Datashaman\LaravelTranslators\Translators\GoogleTranslator::__construct() has invalid type Google\Cloud\Translate\V3\Client\TranslationServiceClient.
phpstan: src/Translators/GoogleTranslator.php#L12
Property Datashaman\LaravelTranslators\Translators\GoogleTranslator::$client has unknown class Google\Cloud\Translate\V3\Client\TranslationServiceClient as its type.
phpstan: src/Translators/GoogleTranslator.php#L13
Parameter $request of method Datashaman\LaravelTranslators\Translators\GoogleTranslator::__construct() has invalid type Google\Cloud\Translate\V3\TranslateTextRequest.
phpstan: src/Translators/GoogleTranslator.php#L13
Property Datashaman\LaravelTranslators\Translators\GoogleTranslator::$request has unknown class Google\Cloud\Translate\V3\TranslateTextRequest as its type.
phpstan: src/Translators/GoogleTranslator.php#L21
Call to method locationName() on an unknown class Google\Cloud\Translate\V3\Client\TranslationServiceClient.