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 hydephp/develop@eeda9f7
  • Loading branch information
github-actions authored and caendesilva committed Dec 21, 2024
1 parent eab4777 commit 4644051
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 4644051

Please sign in to comment.