diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index 1d302ece872..63d1942a640 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -10,7 +10,7 @@ This serves two purposes: 2. At release time, you can move the Unreleased section changes into a new release version section. ### Added -- for new features. +- Updated the `HydeKernel` array representation to include the Hyde version in https://github.com/hydephp/develop/pull/1786 ### Changed - for changes in existing functionality. 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(),