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:
commit
aa942208ac
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Reference in New Issue