Skip to content

Commit 084366d

Browse files
committed
Remove FQCN type hints on properties
1 parent 9faf5c4 commit 084366d

10 files changed

+19
-19
lines changed

Definition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ final class Definition
2525
private array $places = [];
2626
private array $transitions = [];
2727
private array $initialPlaces = [];
28-
private MetadataStoreInterface $metadataStore;
28+
private $metadataStore;
2929

3030
/**
3131
* @param string[] $places

DefinitionBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class DefinitionBuilder
2525
private array $places = [];
2626
private array $transitions = [];
2727
private string|array|null $initialPlaces = null;
28-
private ?MetadataStoreInterface $metadataStore = null;
28+
private $metadataStore = null;
2929

3030
/**
3131
* @param string[] $places

Event/Event.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class Event extends BaseEvent
2525
{
2626
protected $context;
2727
private object $subject;
28-
private Marking $marking;
29-
private ?Transition $transition;
30-
private ?WorkflowInterface $workflow;
28+
private $marking;
29+
private $transition;
30+
private $workflow;
3131

3232
public function __construct(object $subject, Marking $marking, Transition $transition = null, WorkflowInterface $workflow = null, array $context = [])
3333
{

Event/GuardEvent.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
final class GuardEvent extends Event
2525
{
26-
private TransitionBlockerList $transitionBlockerList;
26+
private $transitionBlockerList;
2727

2828
/**
2929
* {@inheritdoc}

EventListener/AuditTrailListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
*/
2121
class AuditTrailListener implements EventSubscriberInterface
2222
{
23-
private LoggerInterface $logger;
23+
private $logger;
2424

2525
public function __construct(LoggerInterface $logger)
2626
{

EventListener/GuardExpression.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
class GuardExpression
1717
{
18-
private Transition $transition;
18+
private $transition;
1919
private string $expression;
2020

2121
public function __construct(Transition $transition, string $expression)

EventListener/GuardListener.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
class GuardListener
2626
{
2727
private array $configuration;
28-
private ExpressionLanguage $expressionLanguage;
29-
private TokenStorageInterface $tokenStorage;
30-
private AuthorizationCheckerInterface $authorizationChecker;
31-
private AuthenticationTrustResolverInterface $trustResolver;
32-
private ?RoleHierarchyInterface $roleHierarchy;
33-
private ?ValidatorInterface $validator;
28+
private $expressionLanguage;
29+
private $tokenStorage;
30+
private $authorizationChecker;
31+
private $trustResolver;
32+
private $roleHierarchy;
33+
private $validator;
3434

3535
public function __construct(array $configuration, ExpressionLanguage $expressionLanguage, TokenStorageInterface $tokenStorage, AuthorizationCheckerInterface $authorizationChecker, AuthenticationTrustResolverInterface $trustResolver, RoleHierarchyInterface $roleHierarchy = null, ValidatorInterface $validator = null)
3636
{

Exception/NotEnabledTransitionException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*/
2222
class NotEnabledTransitionException extends TransitionException
2323
{
24-
private TransitionBlockerList $transitionBlockerList;
24+
private $transitionBlockerList;
2525

2626
public function __construct(object $subject, string $transitionName, WorkflowInterface $workflow, TransitionBlockerList $transitionBlockerList, array $context = [])
2727
{

Exception/TransitionException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TransitionException extends LogicException
2121
{
2222
private object $subject;
2323
private string $transitionName;
24-
private WorkflowInterface $workflow;
24+
private $workflow;
2525
private array $context;
2626

2727
public function __construct(object $subject, string $transitionName, WorkflowInterface $workflow, string $message, array $context = [])

Workflow.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ class Workflow implements WorkflowInterface
5252
WorkflowEvents::ANNOUNCE => self::DISABLE_ANNOUNCE_EVENT,
5353
];
5454

55-
private Definition $definition;
56-
private MarkingStoreInterface $markingStore;
57-
private ?EventDispatcherInterface $dispatcher;
55+
private $definition;
56+
private $markingStore;
57+
private $dispatcher;
5858
private string $name;
5959

6060
/**

0 commit comments

Comments
 (0)