Skip to content

Commit

Permalink
Merge branch 'master' into publications-feature
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva authored May 14, 2023
2 parents 4a7a221 + 2a3d196 commit b62afe1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ This serves two purposes:

### Changed
- Internal: Decoupled the monorepo `composer.json` settings in https://github.com/hydephp/develop/pull/1361
- Changed HydePage return types to static in https://github.com/hydephp/develop/pull/1371

### Deprecated
- for soon-to-be removed features.
Expand Down
4 changes: 2 additions & 2 deletions packages/framework/src/Pages/Concerns/HydePage.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public static function isDiscoverable(): bool
*
* @throws \Hyde\Framework\Exceptions\FileNotFoundException If the page does not exist.
*/
public static function get(string $identifier): HydePage
public static function get(string $identifier): static
{
return Pages::getPage(static::sourcePath($identifier));
}
Expand All @@ -118,7 +118,7 @@ public static function get(string $identifier): HydePage
*
* @throws \Hyde\Framework\Exceptions\FileNotFoundException If the file does not exist.
*/
public static function parse(string $identifier): HydePage
public static function parse(string $identifier): static
{
return (new SourceFileParser(static::class, $identifier))->get();
}
Expand Down

0 comments on commit b62afe1

Please sign in to comment.