Skip to content

Commit 05fb896

Browse files
committed
fix: tags may not exist if acf plugin is activated
1 parent a062a33 commit 05fb896

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Objects/Post.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ class Post extends WordPressObject
5353
public stdClass $meta;
5454

5555
/**
56-
* @var int[]
56+
* @var array<int, int>
5757
*/
58-
public array $categories;
58+
public array $categories = [];
5959

6060
/**
61-
* @var int[]
61+
* @var array<int, int>
6262
*/
63-
public array $tags;
63+
public array $tags = [];
6464

6565
public static function from(stdClass $data): static
6666
{

0 commit comments

Comments
 (0)