DX: apply rector rules up to php8.0

This commit is contained in:
2023-04-15 01:05:37 +02:00
parent d8870e906f
commit dde3002100
714 changed files with 2348 additions and 9263 deletions

View File

@@ -294,7 +294,7 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
/**
* @return ArrayCollection|Collection
*/
public function getSteps()
public function getSteps(): \Doctrine\Common\Collections\ArrayCollection|\Doctrine\Common\Collections\Collection
{
return $this->steps;
}
@@ -335,7 +335,7 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
/**
* @return ArrayCollection|Collection
*/
public function getSubscriberToFinal()
public function getSubscriberToFinal(): \Doctrine\Common\Collections\ArrayCollection|\Doctrine\Common\Collections\Collection
{
return $this->subscriberToFinal;
}
@@ -343,7 +343,7 @@ class EntityWorkflow implements TrackCreationInterface, TrackUpdateInterface
/**
* @return ArrayCollection|Collection
*/
public function getSubscriberToStep()
public function getSubscriberToStep(): \Doctrine\Common\Collections\ArrayCollection|\Doctrine\Common\Collections\Collection
{
return $this->subscriberToStep;
}

View File

@@ -356,8 +356,6 @@ class EntityWorkflowStep
}
/**
* @return EntityWorkflowStep
*
* @internal
*/
public function setNext(?EntityWorkflowStep $next): self
@@ -368,8 +366,6 @@ class EntityWorkflowStep
}
/**
* @return EntityWorkflowStep
*
* @internal
*/
public function setPrevious(?EntityWorkflowStep $previous): self
@@ -409,10 +405,8 @@ class EntityWorkflowStep
/**
* @Assert\Callback
*
* @param mixed $payload
*/
public function validateOnCreation(ExecutionContextInterface $context, $payload): void
public function validateOnCreation(ExecutionContextInterface $context, mixed $payload): void
{
return;