diff --git a/packages/framework/src/Foundation/HydeKernel.php b/packages/framework/src/Foundation/HydeKernel.php index f4b03de9cae..de7ab899b28 100644 --- a/packages/framework/src/Foundation/HydeKernel.php +++ b/packages/framework/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/packages/framework/tests/Feature/HydeKernelTest.php b/packages/framework/tests/Feature/HydeKernelTest.php index 117d455ff46..1d3bcfb54f1 100644 --- a/packages/framework/tests/Feature/HydeKernelTest.php +++ b/packages/framework/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(),