Skip to content

Commit

Permalink
Set initial value for optional property
Browse files Browse the repository at this point in the history
  • Loading branch information
pspanja committed Apr 22, 2022
1 parent 969c2f7 commit 7d9f2e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/API/Values/Content/Search/SearchResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ class SearchResult extends BaseSearchResult
/**
* Contains suggestion for misspelled words.
*/
public Suggestion $suggestion;
public ?Suggestion $suggestion = null;
}

0 comments on commit 7d9f2e4

Please sign in to comment.