Skip to content

Commit

Permalink
Fix: stan errors (pimcore#16333)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertSt7 authored Dec 6, 2023
1 parent d4b56a4 commit 98327b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions lib/Workflow/GlobalAction.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
use Pimcore\Workflow\Notes\CustomHtmlServiceInterface;
use Pimcore\Workflow\Notes\NotesAwareInterface;
use Pimcore\Workflow\Notes\NotesAwareTrait;
use Symfony\Component\Workflow\Workflow;
use Symfony\Component\Workflow\WorkflowInterface;

class GlobalAction implements NotesAwareInterface
{
Expand Down Expand Up @@ -80,7 +80,7 @@ public function getGuard(): ?string
return $this->options['guard'] ?? null;
}

public function isGuardValid(Workflow $workflow, object $subject): bool
public function isGuardValid(WorkflowInterface $workflow, object $subject): bool
{
if (empty($this->getGuard())) {
return true;
Expand Down
8 changes: 4 additions & 4 deletions lib/Workflow/Place/PlaceConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

use Pimcore\Helper\ContrastColor;
use Pimcore\Workflow\ExpressionService;
use Symfony\Component\Workflow\Workflow;
use Symfony\Component\Workflow\WorkflowInterface;

class PlaceConfig
{
Expand Down Expand Up @@ -78,7 +78,7 @@ public function isVisibleInHeader(): bool
return $this->placeConfigArray['visibleInHeader'];
}

public function getObjectLayout(Workflow $workflow, object $subject): ?string
public function getObjectLayout(WorkflowInterface $workflow, object $subject): ?string
{
return $this->getPermissions($workflow, $subject)['objectLayout'] ?? null;
}
Expand All @@ -98,7 +98,7 @@ public function getPlaceConfigArray(): array
return $this->placeConfigArray;
}

public function getPermissions(Workflow $workflow, object $subject): array
public function getPermissions(WorkflowInterface $workflow, object $subject): array
{
foreach ($this->placeConfigArray['permissions'] ?? [] as $permission) {
$condition = $permission['condition'] ?? false;
Expand All @@ -112,7 +112,7 @@ public function getPermissions(Workflow $workflow, object $subject): array
return [];
}

public function getUserPermissions(Workflow $workflow, object $subject): array
public function getUserPermissions(WorkflowInterface $workflow, object $subject): array
{
$result = [];

Expand Down

0 comments on commit 98327b5

Please sign in to comment.