|
27 | 27 | use Joomla\Component\Scheduler\Administrator\Helper\SchedulerHelper; |
28 | 28 | use Joomla\Component\Scheduler\Administrator\Table\TaskTable; |
29 | 29 | use Joomla\Component\Scheduler\Administrator\Task\TaskOption; |
| 30 | +use Joomla\Database\DatabaseInterface; |
30 | 31 | use Joomla\Database\ParameterType; |
31 | 32 | use Symfony\Component\OptionsResolver\Exception\AccessException; |
32 | 33 | use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; |
@@ -413,7 +414,7 @@ public function getTask(array $options = []): ?\stdClass |
413 | 414 | /** |
414 | 415 | * Checks if there are any running tasks in the database. |
415 | 416 | * |
416 | | - * @param \JDatabaseDriver $db The database driver to use. |
| 417 | + * @param DatabaseInterface $db The database driver to use. |
417 | 418 | * @return bool True if there are running tasks, false otherwise. |
418 | 419 | * @since 4.4.9 |
419 | 420 | */ |
@@ -481,7 +482,7 @@ static function (TaskOption $taskOption): string { |
481 | 482 | /** |
482 | 483 | * Retrieves the ID of the next task based on the given criteria. |
483 | 484 | * |
484 | | - * @param \JDatabaseDriver $db The database object. |
| 485 | + * @param DatabaseInterface $db The database object. |
485 | 486 | * @param string $now The current time. |
486 | 487 | * @param array $options The options for retrieving the next task. |
487 | 488 | * - includeCliExclusive: Whether to include CLI exclusive tasks. |
@@ -534,7 +535,7 @@ static function (TaskOption $taskOption): string { |
534 | 535 | /** |
535 | 536 | * Fetches a task from the database based on the current time. |
536 | 537 | * |
537 | | - * @param \JDatabaseDriver $db The database driver to use. |
| 538 | + * @param DatabaseInterface $db The database driver to use. |
538 | 539 | * @param string $now The current time in the database's time format. |
539 | 540 | * @return \stdClass|null The fetched task object, or null if no task was found. |
540 | 541 | * @since 5.2.0 |
|
0 commit comments