From 69489eeaa80f9798e6ffacdfaf8dfcda9b68adbc Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Fri, 5 Jul 2024 20:32:33 +0200 Subject: [PATCH] Update the kernel array representation to include the version --- packages/framework/src/Foundation/HydeKernel.php | 1 + packages/framework/tests/Feature/HydeKernelTest.php | 1 + 2 files changed, 2 insertions(+) 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(),