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

Remove IDE helpers for removed global variables from the IDE helper file #1274

Merged
merged 6 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 @@ -19,7 +19,7 @@ This serves two purposes:
- for soon-to-be removed features.

### Removed
- for now removed features.
- Removed IDE helpers for removed global variables from the IDE helper file. https://github.com/hydephp/develop/pull/1274

### Fixed
- for any bug fixes.
Expand Down
16 changes: 2 additions & 14 deletions _ide_helper.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,22 +16,10 @@
/** @var \Hyde\Pages\Concerns\HydePage $page The page being compiled/previewed */
$page = \Hyde\Support\Facades\Render::getPage();

/**
* @var \Hyde\Support\Models\Route $currentRoute The route for the page being compiled/previewed
* @deprecated Renamed to $route as "current" is implied
*/
$currentRoute = \Hyde\Support\Facades\Render::getRoute();

/**
* @var string $currentPage The route key for the page being compiled/previewed
* @deprecated Renamed to $routeKey as "current" is implied, and it's not a page
*/
$currentPage = \Hyde\Support\Facades\Render::getRouteKey();

/*** @var \Hyde\Support\Models\Route $currentRoute The route for the page being compiled/previewed */
/** @var \Hyde\Support\Models\Route $route The route for the page being compiled/previewed */
$route = \Hyde\Support\Facades\Render::getRoute();

/** @var string $currentPage The route key for the page being compiled/previewed */
/** @var string $routeKey The route key for the page being compiled/previewed */
$routeKey = \Hyde\Support\Facades\Render::getRouteKey();

// Facades (aliased in app/config.php)
Expand Down