diff --git a/src/Foundation/HydeKernel.php b/src/Foundation/HydeKernel.php index 6ee1905e..33d109e8 100644 --- a/src/Foundation/HydeKernel.php +++ b/src/Foundation/HydeKernel.php @@ -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, diff --git a/tests/Feature/HydeKernelTest.php b/tests/Feature/HydeKernelTest.php index 0b2afa5e..d2e58f58 100644 --- a/tests/Feature/HydeKernelTest.php +++ b/tests/Feature/HydeKernelTest.php @@ -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(),