8000 Merge branch '5.4' into 6.0 · symfony/symfony@f821d76 · GitHub
[go: up one dir, main page]

Skip to content

Commit f821d76

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Remove duplicated array entry qa: add missing type-hints to workflow `Transition` Declare returned type.
2 parents efc16f6 + e1fae2c commit f821d76

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

src/Symfony/Component/EventDispatcher/EventSubscriberInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ interface EventSubscriberInterface
4343
* The code must not depend on runtime state as it will only be called at compile time.
4444
* All logic depending on runtime state must be put into the individual methods handling the events.
4545
*
46-
* @return array The event names to listen to
46+
* @return array<string, mixed> The event names to listen to
4747
*/
4848
public static function getSubscribedEvents();
4949
}

src/Symfony/Component/Form/Tests/Extension/Core/Type/DateTimeTypeTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,6 @@ public function testSingleTextWidgetWithSecondsShouldNotOverrideStepAttribute()
523523
public function testSingleTextWidgetWithCustomNonHtml5Format()
524524
{
525525
$form = $this->factory->create(static::TESTED_TYPE, new \DateTime('2019-02-13 19:12:13'), [
526-
'html5' => false,
527526
'widget' => 'single_text',
528527
'date_format' => \IntlDateFormatter::SHORT,
529528
'format' => null,

src/Symfony/Component/Workflow/Transition.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,25 @@ public function __construct(string $name, string|array $froms, string|array $tos
3232
$this->tos = (array) $tos;
3333
}
3434

35+
/**
36+
* @return string
37+
*/
3538
public function getName()
3639
{
3740
return $this->name;
3841
}
3942

43+
/**
44+
* @return string[]
45+
*/
4046
public function getFroms()
4147
{
4248
return $this->froms;
4349
}
4450

51+
/**
52+
* @return string[]
53+
*/
4554
public function getTos()
4655
{
4756
return $this->tos;

0 commit comments

Comments
 (0)
0