Skip to content

Commit

Permalink
Update the kernel array representation to include the version
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Jul 5, 2024
1 parent 239b760 commit 69489ee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
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 69489ee

Please sign in to comment.