Skip to content

Commit 0e441f4

Browse files
authored
Merge pull request #1002 from hydephp/handle-deprecations
Remove deprecated BuildTaskService::findTasksInAppDirectory() method from the public API
2 parents 8a66fd0 + b319311 commit 0e441f4

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

packages/framework/src/Framework/Services/BuildTaskService.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,7 @@ public function getPostBuildTasks(): array
5252
);
5353
}
5454

55-
/**
56-
* @deprecated Public usage of this method is deprecated as the method will be made protected.
57-
*/
58-
public static function findTasksInAppDirectory(): array
55+
protected static function findTasksInAppDirectory(): array
5956
{
6057
$tasks = [];
6158

packages/framework/tests/Feature/Services/BuildTaskServiceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public function test_find_tasks_in_app_directory_method_discovers_tasks_in_app_d
186186
File::makeDirectory(Hyde::path('app/Actions'));
187187
Hyde::touch('app/Actions/FooBuildTask.php');
188188

189-
$this->assertEquals(['App\Actions\FooBuildTask'], BuildTaskService::findTasksInAppDirectory());
189+
$this->assertEquals(['App\Actions\FooBuildTask'], (new BuildTaskService())->getPostBuildTasks());
190190
File::deleteDirectory(Hyde::path('app/Actions'));
191191
}
192192

0 commit comments

Comments
 (0)