Skip to content

Commit

Permalink
Make HydePage::$title property readonly
Browse files Browse the repository at this point in the history
Makes HydePage::$title property readonly as it does not support being persisted
  • Loading branch information
caendesilva committed Mar 11, 2023
1 parent 7a7cd94 commit 62aac16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This serves two purposes:
- for new features.

### Changed
- for changes in existing functionality.
- Made the `HydePage::$title` property readonly

### Deprecated
- for soon-to-be removed features.
Expand Down
2 changes: 1 addition & 1 deletion packages/framework/src/Pages/Concerns/HydePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ abstract class HydePage implements PageSchema, SerializableContract
public PageMetadataBag $metadata;
public NavigationData $navigation;

public string $title;
public readonly string $title;
public ?string $canonicalUrl;

public static function make(string $identifier = '', FrontMatter|array $matter = []): static
Expand Down

0 comments on commit 62aac16

Please sign in to comment.