Changeset 55822 for trunk/tests/phpunit/tests/rest-api/rest-server.php
- Timestamp:
- 05/17/2023 10:44:21 PM (21 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/rest-api/rest-server.php
r55562 r55822 938 938 */ 939 939 public function test_link_embedding_returning_wp_error() { 940 $return_wp_error = function() {940 $return_wp_error = static function() { 941 941 return new WP_Error( 'some-error', 'This is not valid!' ); 942 942 }; … … 2189 2189 array( 2190 2190 'methods' => \WP_REST_Server::READABLE, 2191 'callback' => function() {2191 'callback' => static function() { 2192 2192 return new \WP_REST_Response( INF ); 2193 2193 },
Note: See TracChangeset
for help on using the changeset viewer.