• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wp-graphql / wp-graphql / 13316763745

13 Feb 2025 08:45PM UTC coverage: 82.712% (-0.3%) from 83.023%
13316763745

push

github

web-flow
Merge pull request #3307 from wp-graphql/release/v2.0.0

release: v2.0.0

195 of 270 new or added lines in 20 files covered. (72.22%)

180 existing lines in 42 files now uncovered.

13836 of 16728 relevant lines covered (82.71%)

299.8 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Types.php
1
<?php
2

3
namespace WPGraphQL;
4

5
use WPGraphQL\Utils\Utils;
6

7
/**
8
 * This class was used to access Type definitions pre v0.4.0, but is no longer used.
9
 * See upgrade guide vor v0.4.0 (https://github.com/wp-graphql/wp-graphql/releases/tag/v0.4.0) for
10
 * information on updating to use non-static TypeRegistry methods to get_type(), etc.
11
 *
12
 * @deprecated since v0.6.0. Old static methods can now be done by accessing the
13
 *             TypeRegistry class from within the `graphql_register_types` hook
14
 */
15
class Types {
16

17
        /**
18
         * @deprecated since v0.6.0. Use Utils:map_input instead
19
         *
20
         * @param mixed[] $args The raw query args from the GraphQL query.
21
         * @param mixed[] $map  The mapping of where each of the args should go.
22
         *
23
         * @return array<string,mixed>
24
         */
UNCOV
25
        public static function map_input( $args, $map ) {
×
26
                _deprecated_function( __METHOD__, '0.6.0', 'WPGraphQL\Utils\Utils::map_input()' );
×
27
                return Utils::map_input( $args, $map );
×
28
        }
29

30
        /**
31
         * @deprecated since v0.6.0 use Utils::prepare_date_response(); instead
32
         * @param string      $date_gmt GMT publication time.
33
         * @param string|null $date     Optional. Local publication time. Default null.
34
         * @return string|null ISO8601/RFC3339 formatted datetime.
35
         */
UNCOV
36
        public static function prepare_date_response( $date_gmt, $date = null ) {
×
37
                _deprecated_function( __METHOD__, '0.6.0', 'WPGraphQL\Utils\Utils::prepare_date_response()' );
×
38
                return Utils::prepare_date_response( $date_gmt, $date );
×
39
        }
40
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc