Add Type Ahead experiment #151
Draft
Annotations
10 errors
|
Run PHP static analysis tests
Process completed with exit code 1.
|
|
Run PHP static analysis tests:
includes/Experiments/Type_Ahead/Type_Ahead.php#L286
Method WordPress\AI\Experiments\Type_Ahead\Type_Ahead::get_entry_points() return type has no value type specified in iterable type array.
|
|
Run PHP static analysis tests:
includes/Experiments/Type_Ahead/Type_Ahead.php#L270
Method WordPress\AI\Experiments\Type_Ahead\Type_Ahead::sanitize_max_words() has parameter $value with no type specified.
|
|
Run PHP static analysis tests:
includes/Experiments/Type_Ahead/Type_Ahead.php#L261
Method WordPress\AI\Experiments\Type_Ahead\Type_Ahead::sanitize_confidence() has parameter $value with no type specified.
|
|
Run PHP static analysis tests:
includes/Experiments/Type_Ahead/Type_Ahead.php#L252
Method WordPress\AI\Experiments\Type_Ahead\Type_Ahead::sanitize_delay() has parameter $value with no type specified.
|
|
Run PHP static analysis tests:
includes/Experiments/Type_Ahead/Type_Ahead.php#L243
Method WordPress\AI\Experiments\Type_Ahead\Type_Ahead::sanitize_mode() has parameter $mode with no type specified.
|
|
Run PHP static analysis tests:
includes/Abilities/Type_Ahead/Type_Ahead.php#L390
Parameter #3 $length of function substr expects int, int<0, max>|false given.
|
|
Run PHP static analysis tests:
includes/Abilities/Type_Ahead/Type_Ahead.php#L384
Method WordPress\AI\Abilities\Type_Ahead\Type_Ahead::decode_suggestion_payload() return type has no value type specified in iterable type array.
|
|
Run PHP static analysis tests:
includes/Abilities/Type_Ahead/Type_Ahead.php#L330
Parameter #1 $prompt of static method WordPress\AI_Client\AI_Client::prompt_with_wp_error() expects array<'parts'|'role'|int<0, max>, array<array{channel: string, type: string, text?: string, file?: array{fileType: string, url?: string, mimeType: string, base64Data?: string}, functionCall?: array{id?: string, name?: string, args?: mixed}, functionResponse?: array{id: string, name: string, response: mixed}}|array{fileType: string, url?: string, mimeType: string, base64Data?: string}|array{id: string, name: string, response: mixed}|array{id?: string, name?: string, args?: mixed}|string>|string|WordPress\AiClient\Messages\DTO\Message|WordPress\AiClient\Messages\DTO\MessagePart>|string|WordPress\AiClient\Messages\DTO\Message|WordPress\AiClient\Messages\DTO\MessagePart|null, non-empty-string|false given.
|
|
Run PHP static analysis tests:
includes/Abilities/Type_Ahead/Type_Ahead.php#L48
Method WordPress\AI\Abilities\Type_Ahead\Type_Ahead::log_debug() has parameter $context with no value type specified in iterable type array.
|
Loading