Make WordPress Core

Changeset 52777


Ignore:
Timestamp:
02/19/2022 01:25:05 PM (2 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct parameter types for data_wp_validate_boolean().

Follow-up to [46159], [46224], [52775], [52776].

See #54725, #54729.

Location:
trunk/tests/phpunit/tests/functions
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/functions/cleanupHeaderComment.php

    r49006 r52777  
    1616     * @dataProvider data_cleanup_header_comment
    1717     *
    18      * @param string $test_string
    19      * @param string $expected
     18     * @param string $test_string Test string.
     19     * @param string $expected    Expected return value.
    2020     */
    2121    public function test_cleanup_header_comment( $test_string, $expected ) {
  • trunk/tests/phpunit/tests/functions/wpValidateBoolean.php

    r52776 r52777  
    1717     * @ticket 39868
    1818     *
    19      * @param mixed $test_value
    20      * @param bool  $expected
     19     * @param mixed $test_value Test value.
     20     * @param bool  $expected   Expected return value.
    2121     */
    2222    public function test_wp_validate_boolean( $test_value, $expected ) {
     
    2828     *
    2929     * @return array[] Test parameters {
    30      *     @type string $test_value Test value.
    31      *     @type string $expected   Expected return value.
     30     *     @type mixed $test_value Test value.
     31     *     @type bool $expected   Expected return value.
    3232     * }
    3333     */
Note: See TracChangeset for help on using the changeset viewer.