Skip to content

Commit

Permalink
Merge pull request #688 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 Dec 21, 2024
2 parents eab4777 + 4644051 commit 1fabbd8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions 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 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 1fabbd8

Please sign in to comment.