Skip to content

Commit

Permalink
Synchronize with new stubs (#202)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor authored Oct 14, 2023
1 parent 4ed6cf2 commit a523869
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/data/get_comment.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
assertType('WP_Comment|null', get_comment(1, 'Hello'));

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

// Associative array output
assertType('array<string, mixed>|null', get_comment(1, ARRAY_A));
Expand Down
2 changes: 1 addition & 1 deletion tests/data/get_object_taxonomies.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
assertType('array<int, string>', get_object_taxonomies('post', 'Hello'));

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

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

0 comments on commit a523869

Please sign in to comment.