Skip to content

Commit

Permalink
Merge pull request #523 from hydephp/caendesilva-patch-1
Browse files Browse the repository at this point in the history
Deprecate Hyde::features(), use Hyde::hasFeature() instead
  • Loading branch information
caendesilva authored Jun 6, 2022
2 parents 74439f0 + 978d2cf commit 619cd19
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Hyde.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,15 @@ public static function getLatestPosts(): Collection
return $collection->sortByDesc('matter.date');
}

/**
* @deprecated v0.34.x Use Hyde::hasFeature() instead.
*/
public static function features(string $feature): bool
{
return static::hasFeature($feature);
}

public static function hasFeature(string $feature): bool
{
return Features::enabled($feature);
}
Expand Down

0 comments on commit 619cd19

Please sign in to comment.