Skip to content

Commit 5a06aea

Browse files
committed
Add void return types
1 parent f7f754d commit 5a06aea

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/phpunit/tests/ai-client/wpAiClientPrompt.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function test_returns_independent_instances() {
3434
/**
3535
* Tests that returns a WP_AI_Client_Prompt_Builder instance even when AI is not supported, but that the builder contains an error.
3636
*/
37-
public function test_returns_error_builder_when_ai_not_supported() {
37+
public function test_returns_error_builder_when_ai_not_supported(): void {
3838
// Temporarily disable AI support for this test.
3939
add_filter( 'wp_supports_ai', '__return_false' );
4040
$builder = wp_ai_client_prompt();

tests/phpunit/tests/ai-client/wpSupportsAI.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@ class Tests_WP_Supports_AI extends WP_UnitTestCase {
1212
*
1313
* @ticket 64591
1414
*/
15-
public function test_defaults_to_true() {
15+
public function test_defaults_to_true(): void {
1616
$this->assertTrue( wp_supports_ai() );
1717
}
1818

1919
/**
2020
* Tests that the wp_supports_ai filter can disable/enable AI features.
2121
*/
22-
public function test_filter_can_disable_ai_features() {
22+
public function test_filter_can_disable_ai_features(): void {
2323
add_filter( 'wp_supports_ai', '__return_false' );
2424
$this->assertFalse( wp_supports_ai() );
2525

tests/phpunit/tests/connectors/wpConnectorsGetConnectorSettings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public function test_includes_registered_provider_from_registry() {
119119
/**
120120
* Tests connectors return an empty array when AI is not supported
121121
*/
122-
public function test_returns_empty_array_when_ai_not_supported() {
122+
public function test_returns_empty_array_when_ai_not_supported(): void {
123123
// Temporarily disable AI support for this test.
124124
add_filter( 'wp_supports_ai', '__return_false' );
125125

0 commit comments

Comments
 (0)