Skip to content

Commit

Permalink
Merge pull request #1786 from hydephp/update-kernel-array-representation
Browse files Browse the repository at this point in the history
Update the `HydeKernel` array representation to include the Hyde version
  • Loading branch information
caendesilva authored Jul 5, 2024
2 parents 239b760 + ee1b625 commit eeda9f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
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.
- Updated the `HydeKernel` array representation to include the Hyde version in https://github.com/hydephp/develop/pull/1786

### Changed
- for changes in existing functionality.
Expand Down
1 change: 1 addition & 0 deletions packages/framework/src/Foundation/HydeKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ public function hasFeature(Feature|string $feature): bool
public function toArray(): array
{
return [
'version' => self::VERSION,
'basePath' => $this->basePath,
'sourceRoot' => $this->sourceRoot,
'outputDirectory' => $this->outputDirectory,
Expand Down
1 change: 1 addition & 0 deletions packages/framework/tests/Feature/HydeKernelTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,7 @@ public function testToArrayMethod()
{
// AssertSame cannot be used as features is reinstantiated on each call
$this->assertEquals([
'version' => Hyde::version(),
'basePath' => Hyde::getBasePath(),
'sourceRoot' => Hyde::getSourceRoot(),
'outputDirectory' => Hyde::getOutputDirectory(),
Expand Down

0 comments on commit eeda9f7

Please sign in to comment.