From cc5f355b379c15f9f3e6de504d6d7ef82fe9594a Mon Sep 17 00:00:00 2001 From: Caen De Silva Date: Sat, 28 Oct 2023 19:36:35 +0200 Subject: [PATCH] Annotate class string parameter --- packages/framework/src/Framework/Services/BuildTaskService.php | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/framework/src/Framework/Services/BuildTaskService.php b/packages/framework/src/Framework/Services/BuildTaskService.php index 0b713144708..13652c3f0c8 100644 --- a/packages/framework/src/Framework/Services/BuildTaskService.php +++ b/packages/framework/src/Framework/Services/BuildTaskService.php @@ -87,6 +87,7 @@ protected function registerTaskInService(PreBuildTask|PostBuildTask $task): void $this->buildTasks[$this->makeTaskIdentifier($task)] = $task; } + /** @param class-string<\Hyde\Framework\Features\BuildTasks\PreBuildTask|\Hyde\Framework\Features\BuildTasks\PostBuildTask> $task */ protected function registerIf(string $task, bool $condition): void { if ($condition) {