Skip to content

Commit a810704

Browse files
committed
fix: Use callable descriptions for phone format properties
1 parent da3d808 commit a810704

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Type/WPObject/PhoneFormatProperties.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ public static function get_fields(): array {
3535
return [
3636
'label' => [
3737
'type' => 'String',
38-
'description' => __( 'The display label for the phone format.', 'wp-graphql-gravity-forms' ),
38+
'description' => static fn () => __( 'The display label for the phone format.', 'wp-graphql-gravity-forms' ),
3939
],
4040
'mask' => [
4141
'type' => 'String',
42-
'description' => __( 'The input mask for the phone format (e.g., "(999) 999-9999").', 'wp-graphql-gravity-forms' ),
42+
'description' => static fn () => __( 'The input mask for the phone format (e.g., "(999) 999-9999").', 'wp-graphql-gravity-forms' ),
4343
],
4444
'regex' => [
4545
'type' => 'String',
46-
'description' => __( 'The regex pattern for validating the phone format.', 'wp-graphql-gravity-forms' ),
46+
'description' => static fn () => __( 'The regex pattern for validating the phone format.', 'wp-graphql-gravity-forms' ),
4747
],
4848
'instruction' => [
4949
'type' => 'String',
50-
'description' => __( 'The instruction text displayed to users for this phone format.', 'wp-graphql-gravity-forms' ),
50+
'description' => static fn () => __( 'The instruction text displayed to users for this phone format.', 'wp-graphql-gravity-forms' ),
5151
],
5252
'type' => [
5353
'type' => 'String',
54-
'description' => __( 'The internal type identifier for the phone format.', 'wp-graphql-gravity-forms' ),
54+
'description' => static fn () => __( 'The internal type identifier for the phone format.', 'wp-graphql-gravity-forms' ),
5555
],
5656
];
5757
}

0 commit comments

Comments
 (0)