Skip to content

Commit

Permalink
Blog post edits may be accessed without being previously set (#170)
Browse files Browse the repository at this point in the history
Another way to fix it would be to set the property to an empty array in `PostFormFactory::buildPost()`.

Close #169
  • Loading branch information
spaze authored Jul 6, 2023
2 parents 17007b2 + 3d85b1d commit e025484
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/app/Articles/Blog/BlogPost.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class BlogPost implements ExportsOmittable, ArticleWithId, ArticleWithSlug, Arti
public ?string $editSummary;

/** @var list<ArticleEdit> */
public array $edits;
public array $edits = [];

/** @var list<string> */
public array $cspSnippets = [];
Expand Down

0 comments on commit e025484

Please sign in to comment.