Merge branch '4.4' into 5.2

* 4.4:
  qa: add missing type-hints to workflow `Transition`
  Declare returned type.
This commit is contained in:
Alexander M. Turek 2021-07-14 18:35:24 +02:00
commit aa942208ac
2 changed files with 10 additions and 1 deletions

View File

@ -43,7 +43,7 @@ interface EventSubscriberInterface
* The code must not depend on runtime state as it will only be called at compile time.
* All logic depending on runtime state must be put into the individual methods handling the events.
*
* @return array The event names to listen to
* @return array<string, mixed> The event names to listen to
*/
public static function getSubscribedEvents();
}

View File

@ -32,16 +32,25 @@ class Transition
$this->tos = (array) $tos;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @return string[]
*/
public function getFroms()
{
return $this->froms;
}
/**
* @return string[]
*/
public function getTos()
{
return $this->tos;