From 7037a3fd3ae17fdb108ea37d93671d74ddde1f9f Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sat, 28 Oct 2023 19:44:06 +0200 Subject: [PATCH] Narrow down base class type hints to implementation unions --- .../framework/src/Framework/Services/BuildTaskService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 {