Changeset 51657 for trunk/tests/phpunit/tests/rest-api/rest-request.php
- Timestamp:
- 08/26/2021 12:57:08 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-request.php
r51577 r51657 476 476 'args' => array( 477 477 'failparam' => array( 478 'sanitize_callback' => function () {478 'sanitize_callback' => static function () { 479 479 $error = new WP_Error( 'invalid', 'Invalid.' ); 480 480 $error->add( 'invalid', 'Super Invalid.' ); … … 511 511 'args' => array( 512 512 'failparam' => array( 513 'sanitize_callback' => function () {513 'sanitize_callback' => static function () { 514 514 return new WP_Error( 'invalid', 'Invalid.', 'mydata' ); 515 515 }, … … 739 739 'args' => array( 740 740 'failparam' => array( 741 'validate_callback' => function () {741 'validate_callback' => static function () { 742 742 $error = new WP_Error( 'invalid', 'Invalid.' ); 743 743 $error->add( 'invalid', 'Super Invalid.' ); … … 774 774 'args' => array( 775 775 'failparam' => array( 776 'validate_callback' => function () {776 'validate_callback' => static function () { 777 777 return new WP_Error( 'invalid', 'Invalid.', 'mydata' ); 778 778 },
Note: See TracChangeset
for help on using the changeset viewer.