From b2b98d9ba3f4b4c40628830f0e15d7289f34eb2d Mon Sep 17 00:00:00 2001 From: Leeroy <175472781+leeroy1821@users.noreply.github.com> Date: Sun, 3 Nov 2024 09:44:38 +0200 Subject: [PATCH] Workflow compatible with CLIApplication Close gh-40653 --- libraries/src/Workflow/Workflow.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/libraries/src/Workflow/Workflow.php b/libraries/src/Workflow/Workflow.php index ec7dcebd0e396..adde3c9cbd0d3 100644 --- a/libraries/src/Workflow/Workflow.php +++ b/libraries/src/Workflow/Workflow.php @@ -9,7 +9,7 @@ namespace Joomla\CMS\Workflow; -use Joomla\CMS\Application\CMSApplication; +use Joomla\CMS\Application\CMSApplicationInterface; use Joomla\CMS\Event\AbstractEvent; use Joomla\CMS\Event\Workflow\WorkflowTransitionEvent; use Joomla\CMS\Extension\ComponentInterface; @@ -50,7 +50,7 @@ class Workflow /** * Application Object * - * @var CMSApplication + * @var CMSApplicationInterface * @since 4.0.0 */ protected $app; @@ -98,13 +98,13 @@ class Workflow /** * Class constructor * - * @param string $extension The extension name - * @param ?CMSApplication $app Application Object - * @param ?DatabaseDriver $db Database Driver Object + * @param string $extension The extension name + * @param ?CMSApplicationInterface $app Application Object + * @param ?DatabaseDriver $db Database Driver Object * * @since 4.0.0 */ - public function __construct(string $extension, ?CMSApplication $app = null, ?DatabaseDriver $db = null) + public function __construct(string $extension, ?CMSApplicationInterface $app = null, ?DatabaseDriver $db = null) { $this->extension = $extension;