You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/Type/WPInterface/FieldSetting/FieldWithPhoneFormat.php
+5-11Lines changed: 5 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -38,21 +38,15 @@ class FieldWithPhoneFormat extends AbstractFieldSetting {
38
38
*/
39
39
publicstaticfunctionget_fields(): array {
40
40
return [
41
-
'phoneFormatType'=> [
41
+
'phoneFormatType' => [
42
42
'type' => PhoneFieldFormatEnum::$type,
43
43
'description' => staticfn () => __( 'Determines the allowed format for phones. If the phone value does not conform with the specified format, the field will fail validation.', 'wp-graphql-gravity-forms' ),
'deprecationReason' => staticfn () => __( 'Use `phoneFormatType` instead. The GraphQL type for this field will change in the next breaking release.', 'wp-graphql-gravity-forms' ),
49
-
'description' => staticfn () => __( 'Determines the allowed format for phones. If the phone value does not conform with the specified format, the field will fail validation.', 'wp-graphql-gravity-forms' ),
50
-
],
51
-
'_phoneFormatExperimental' => [
52
-
'type' => PhoneFormat::$type,
53
-
'description' => staticfn () => __( 'The phone format properties. Experimental', 'wp-graphql-gravity-forms' ),
54
-
'deprecationReason' => staticfn () => __( 'The `phoneFormat` field has been renamed to `phoneFormatType`. The `_phoneFormatExperimental` field will be replaced in a future release.', 'wp-graphql-gravity-forms' ),
55
-
'resolve' => staticfunction ( $field ) {
46
+
'phoneFormat' => [
47
+
'type' => PhoneFormat::$type,
48
+
'description' => staticfn () => __( 'Determines the allowed format for phones. If the phone value does not conform with the specified format, the field will fail validation.', 'wp-graphql-gravity-forms' ),
0 commit comments