diff --git a/packages/framework/src/Framework/Services/BuildTaskService.php b/packages/framework/src/Framework/Services/BuildTaskService.php index f3cfe327ba9..a976526e214 100644 --- a/packages/framework/src/Framework/Services/BuildTaskService.php +++ b/packages/framework/src/Framework/Services/BuildTaskService.php @@ -52,7 +52,7 @@ public function setOutput(?OutputStyle $output): void $this->output = $output; } - /** @return array> */ + /** @return array|class-string<\Hyde\Framework\Features\BuildTasks\PostBuildTask>> */ public function getRegisteredTasks(): array { return array_map(fn (BuildTask $task): string => $task::class, array_values($this->buildTasks)); @@ -103,13 +103,13 @@ protected function registerTasks(array $tasks): void } } - /** @return array> */ + /** @return array|class-string<\Hyde\Framework\Features\BuildTasks\PostBuildTask>> */ protected function findTasksInConfig(): array { return Config::getArray('hyde.build_tasks', []); } - /** @return array> */ + /** @return array|class-string<\Hyde\Framework\Features\BuildTasks\PostBuildTask>> */ protected function findTasksInAppDirectory(): array { return Filesystem::smartGlob('app/Actions/*BuildTask.php')->map(function (string $file): string {