From f0d597bef06ac50409fb6336e1b9a29b9f1d6125 Mon Sep 17 00:00:00 2001 From: John Hooks Date: Tue, 4 Apr 2023 19:19:09 -0700 Subject: [PATCH] refactor: add type hint to db-test-case --- tests/phpunit/includes/class-db-test-case.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/class-db-test-case.php b/tests/phpunit/includes/class-db-test-case.php index c07373b0..fb1e1ff9 100644 --- a/tests/phpunit/includes/class-db-test-case.php +++ b/tests/phpunit/includes/class-db-test-case.php @@ -3,7 +3,7 @@ use PHPUnit\Framework\TestCase; class WP_Notifications_DB_TestCase extends TestCase { - protected function table_exists( $table_name ): bool { + protected function table_exists( string $table_name ): bool { global $wpdb; $expected = $wpdb->prefix . $table_name; $result = $wpdb->get_var(