Skip to content

Commit bb88a9b

Browse files
authored
Merge pull request #1371 from hydephp/change-hydepage-return-types-to-static
Change HydePage return types to static
2 parents 9797b89 + e11f339 commit bb88a9b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/framework/src/Pages/Concerns/HydePage.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static function isDiscoverable(): bool
105105
*
106106
* @throws \Hyde\Framework\Exceptions\FileNotFoundException If the page does not exist.
107107
*/
108-
public static function get(string $identifier): HydePage
108+
public static function get(string $identifier): static
109109
{
110110
return Pages::getPage(static::sourcePath($identifier));
111111
}
@@ -118,7 +118,7 @@ public static function get(string $identifier): HydePage
118118
*
119119
* @throws \Hyde\Framework\Exceptions\FileNotFoundException If the file does not exist.
120120
*/
121-
public static function parse(string $identifier): HydePage
121+
public static function parse(string $identifier): static
122122
{
123123
return (new SourceFileParser(static::class, $identifier))->get();
124124
}

0 commit comments

Comments
 (0)