Skip to content

Commit a523869

Browse files
authored
Synchronize with new stubs (#202)
1 parent 4ed6cf2 commit a523869

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/data/get_comment.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
assertType('WP_Comment|null', get_comment(1, 'Hello'));
1717

1818
// Unknown output
19-
assertType('array|WP_Comment|null', get_comment(1, $_GET['foo']));
20-
assertType('array|WP_Comment', get_comment($comment, $_GET['foo']));
19+
assertType('array<int|string, mixed>|WP_Comment|null', get_comment(1, $_GET['foo']));
20+
assertType('array<int|string, mixed>|WP_Comment', get_comment($comment, $_GET['foo']));
2121

2222
// Associative array output
2323
assertType('array<string, mixed>|null', get_comment(1, ARRAY_A));

tests/data/get_object_taxonomies.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
assertType('array<int, string>', get_object_taxonomies('post', 'Hello'));
1313

1414
// Unknown output
15-
assertType('array<string|WP_Taxonomy>', get_object_taxonomies('post', $_GET['foo']));
15+
assertType('array<int|string, string|WP_Taxonomy>', get_object_taxonomies('post', $_GET['foo']));
1616

1717
// Objects output
1818
assertType('array<string, WP_Taxonomy>', get_object_taxonomies('post', 'objects'));

0 commit comments

Comments
 (0)