Skip to content

Commit 913f8d4

Browse files
committed
Merge branch '6.4' into 7.0
* 6.4: Fix implicit nullable parameters Remove whitespaces from block form_help Fix TypeError on ProgressBar
2 parents 1f2c6e4 + c3eb7ac commit 913f8d4

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/Symfony/Bridge/Twig/Resources/views/Form/bootstrap_5_layout.html.twig

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,12 @@
361361
{# Help #}
362362

363363
{%- block form_help -%}
364-
{% set row_class = row_attr.class|default('') %}
365-
{% set help_class = ' form-text' %}
366-
{% if 'input-group' in row_class %}
364+
{%- set row_class = row_attr.class|default('') -%}
365+
{%- set help_class = ' form-text' -%}
366+
{%- if 'input-group' in row_class -%}
367367
{#- Hack to properly display help with input group -#}
368-
{% set help_class = ' input-group-text' %}
369-
{% endif %}
368+
{%- set help_class = ' input-group-text' -%}
369+
{%- endif -%}
370370
{%- if help is not empty -%}
371371
{%- set help_attr = help_attr|merge({class: (help_attr.class|default('') ~ help_class ~ ' mb-0')|trim}) -%}
372372
{%- endif -%}

src/Symfony/Component/Console/Helper/ProgressBar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ public function setMessage(string $message, string $name = 'message'): void
183183
$this->messages[$name] = $message;
184184
}
185185

186-
public function getMessage(string $name = 'message'): string
186+
public function getMessage(string $name = 'message'): ?string
187187
{
188-
return $this->messages[$name];
188+
return $this->messages[$name] ?? null;
189189
}
190190

191191
public function getStartTime(): int

src/Symfony/Component/Routing/Tests/Fixtures/AttributeFixtures/ExtendedRoute.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#[\Attribute(\Attribute::IS_REPEATABLE | \Attribute::TARGET_CLASS | \Attribute::TARGET_METHOD)]
88
class ExtendedRoute extends Route
99
{
10-
public function __construct(array|string $path = null, ?string $name = null, array $defaults = [])
10+
public function __construct(array|string|null $path = null, ?string $name = null, array $defaults = [])
1111
{
1212
parent::__construct("/{section<(foo|bar|baz)>}" . $path, $name, [], [], array_merge(['section' => 'foo'], $defaults));
1313
}

0 commit comments

Comments
 (0)