Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add generics to the Hyde facade method annotations #1280

Merged
merged 3 commits into from
Mar 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This serves two purposes:
2. At release time, you can move the Unreleased section changes into a new release version section.

### Added
- for new features.
- Added generics to the Hyde facade method annotations https://github.com/hydephp/develop/pull/1280

### Changed
- Updated 404 page home link to use the index route instead of the site URL https://github.com/hydephp/develop/pull/1278
Expand Down
7 changes: 4 additions & 3 deletions packages/framework/src/Hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
use Hyde\Foundation\Kernel\RouteCollection;
use Hyde\Pages\Concerns\HydePage;
use Hyde\Support\Models\Route;
use Hyde\Support\Filesystem\SourceFile;
use Illuminate\Support\Facades\Facade;
use Illuminate\Support\HtmlString;
use JetBrains\PhpStorm\Pure;
Expand Down Expand Up @@ -49,9 +50,9 @@
* @method static string getMediaDirectory()
* @method static string getMediaOutputDirectory()
* @method static Features features()
* @method static FileCollection files()
* @method static PageCollection pages()
* @method static RouteCollection routes()
* @method static FileCollection<SourceFile> files()
* @method static PageCollection<HydePage> pages()
* @method static RouteCollection<Route> routes()
* @method static Route|null currentRoute()
* @method static HydeKernel getInstance()
* @method static Filesystem filesystem()
Expand Down