@@ -97,7 +97,7 @@ public function __construct(array $config = [])
9797 *
9898 * @param array<string, mixed> $payload Content to translate, structured as key-value pairs
9999 * @param array<string, mixed> $params Translation configuration options
100- * @param callable(int, mixed, mixed): void|null $progressCallback Callback invoked with completion percentage (0-100), current chunk, and processed chunk
100+ * @param null| callable(int, mixed, mixed): void $progressCallback Callback invoked with completion percentage (0-100), current chunk, and processed chunk
101101 *
102102 * @return array<string, mixed> Translated content maintaining original structure
103103 *
@@ -300,7 +300,7 @@ private function _createId(): string
300300 * - 'sourceLocale' (string|null): Language code of original text, null for auto-detection
301301 * - 'fast' (bool): Trade translation quality for speed
302302 * - 'reference' (array): Context or glossary terms to guide translation
303- * @param callable(int, mixed, mixed): void|null $progressCallback Invoked per batch with (percentage complete, current batch, translated batch)
303+ * @param null| callable(int, mixed, mixed): void $progressCallback Invoked per batch with (percentage complete, current batch, translated batch)
304304 *
305305 * @return array<string, mixed> Translated data preserving original structure and non-text values
306306 *
@@ -329,7 +329,7 @@ public function localizeObject(array $obj, array $params, ?callable $progressCal
329329 * - 'sourceLocale' (string|null): Language code of original text, null for auto-detection
330330 * - 'fast' (bool): Prioritize speed over translation quality
331331 * - 'reference' (array): Context, terminology, or style guidelines for translation
332- * @param callable(int): void|null $progressCallback Called with completion percentage (0-100) during processing
332+ * @param null| callable(int): void $progressCallback Called with completion percentage (0-100) during processing
333333 *
334334 * @return string Translated text, or empty string if translation unavailable
335335 *
@@ -398,7 +398,7 @@ public function batchLocalizeText(string $text, array $params): array
398398 * - 'sourceLocale' (string|null): Language of original messages, null for auto-detection
399399 * - 'fast' (bool): Optimize for speed over translation quality
400400 * - 'reference' (array): Conversation context or domain-specific terminology
401- * @param callable(int): void|null $progressCallback Called with completion percentage (0-100) during processing
401+ * @param null| callable(int): void $progressCallback Called with completion percentage (0-100) during processing
402402 *
403403 * @return array<int, array{name: string, text: string}> Translated messages keeping original speaker names unchanged
404404 *
0 commit comments