From 1b5ab7ad0c701d4dbe5e07743beffc7afcc7a6a0 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 10 Nov 2023 10:47:55 +0000 Subject: [PATCH] Docs: Fix incorrect `@return` tag in `wp_check_filetype()` tests. `@return[]` is not a valid tag. Fixed now, though without further specification. Reference: [https://developer.wordpress.org/coding-standards/inline-documentation-standards/php/#phpdoc-tags PHP Documentation Standards: PHPDoc Tags]. Follow-up to [55456]. Props jrf. See #59651. git-svn-id: https://develop.svn.wordpress.org/trunk@57101 602fd350-edb4-49c9-b593-d223f7449a82 --- tests/phpunit/tests/functions/wpCheckFiletype.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/phpunit/tests/functions/wpCheckFiletype.php b/tests/phpunit/tests/functions/wpCheckFiletype.php index 7946ca5752..37d7afdd01 100644 --- a/tests/phpunit/tests/functions/wpCheckFiletype.php +++ b/tests/phpunit/tests/functions/wpCheckFiletype.php @@ -28,7 +28,7 @@ class Tests_Functions_WpCheckFiletype extends WP_UnitTestCase { /** * Data provider. * - * @return[] + * @return array[] */ public function data_wp_check_filetype() { return array( @@ -105,7 +105,6 @@ class Tests_Functions_WpCheckFiletype extends WP_UnitTestCase { 'type' => false, ), ), - ); } }