Skip to content

Commit c620a06

Browse files
Merge branch '6.4' into 7.0
* 6.4: Fix implicitly-required parameters minor #53524 [Messenger] [AmazonSqs] Allow `async-aws/sqs` version 2 (smoench) Fix bad merge List CS fix in .git-blame-ignore-revs Fix implicitly-required parameters List CS fix in .git-blame-ignore-revs Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2 parents 9f7b08f + 463e678 commit c620a06

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Controller/ExceptionPanelController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class ExceptionPanelController
2828
private HtmlErrorRenderer $errorRenderer;
2929
private ?Profiler $profiler;
3030

31-
public function __construct(HtmlErrorRenderer $errorRenderer, Profiler $profiler = null)
31+
public function __construct(HtmlErrorRenderer $errorRenderer, ?Profiler $profiler = null)
3232
{
3333
$this->errorRenderer = $errorRenderer;
3434
$this->profiler = $profiler;

Controller/ProfilerController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ProfilerController
4141
private ?ContentSecurityPolicyHandler $cspHandler;
4242
private ?string $baseDir;
4343

44-
public function __construct(UrlGeneratorInterface $generator, ?Profiler $profiler, Environment $twig, array $templates, ContentSecurityPolicyHandler $cspHandler = null, string $baseDir = null)
44+
public function __construct(UrlGeneratorInterface $generator, ?Profiler $profiler, Environment $twig, array $templates, ?ContentSecurityPolicyHandler $cspHandler = null, ?string $baseDir = null)
4545
{
4646
$this->generator = $generator;
4747
$this->profiler = $profiler;
@@ -127,7 +127,7 @@ public function panelAction(Request $request, string $token): Response
127127
*
128128
* @throws NotFoundHttpException
129129
*/
130-
public function toolbarAction(Request $request, string $token = null): Response
130+
public function toolbarAction(Request $request, ?string $token = null): Response
131131
{
132132
if (null === $this->profiler) {
133133
throw new NotFoundHttpException('The profiler must be enabled.');

Controller/RouterController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class RouterController
4040
*/
4141
private iterable $expressionLanguageProviders;
4242

43-
public function __construct(?Profiler $profiler, Environment $twig, UrlMatcherInterface $matcher = null, RouteCollection $routes = null, iterable $expressionLanguageProviders = [])
43+
public function __construct(?Profiler $profiler, Environment $twig, ?UrlMatcherInterface $matcher = null, ?RouteCollection $routes = null, iterable $expressionLanguageProviders = [])
4444
{
4545
$this->profiler = $profiler;
4646
$this->twig = $twig;

EventListener/WebDebugToolbarListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class WebDebugToolbarListener implements EventSubscriberInterface
4848
private ?ContentSecurityPolicyHandler $cspHandler;
4949
private ?DumpDataCollector $dumpDataCollector;
5050

51-
public function __construct(Environment $twig, bool $interceptRedirects = false, int $mode = self::ENABLED, UrlGeneratorInterface $urlGenerator = null, string $excludedAjaxPaths = '^/bundles|^/_wdt', ContentSecurityPolicyHandler $cspHandler = null, DumpDataCollector $dumpDataCollector = null)
51+
public function __construct(Environment $twig, bool $interceptRedirects = false, int $mode = self::ENABLED, ?UrlGeneratorInterface $urlGenerator = null, string $excludedAjaxPaths = '^/bundles|^/_wdt', ?ContentSecurityPolicyHandler $cspHandler = null, ?DumpDataCollector $dumpDataCollector = null)
5252
{
5353
$this->twig = $twig;
5454
$this->urlGenerator = $urlGenerator;

Profiler/CodeExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public function fileExcerpt(string $file, int $line, int $srcContext = 3): ?stri
157157
/**
158158
* Formats a file path.
159159
*/
160-
public function formatFile(string $file, int $line, string $text = null): string
160+
public function formatFile(string $file, int $line, ?string $text = null): string
161161
{
162162
$file = trim($file);
163163

Twig/WebProfilerExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class WebProfilerExtension extends ProfilerExtension
3737

3838
private int $stackLevel = 0;
3939

40-
public function __construct(HtmlDumper $dumper = null)
40+
public function __construct(?HtmlDumper $dumper = null)
4141
{
4242
$this->dumper = $dumper ?? new HtmlDumper();
4343
$this->dumper->setOutput($this->output = fopen('php://memory', 'r+'));
@@ -77,7 +77,7 @@ public function dumpData(Environment $env, Data $data, int $maxDepth = 0): strin
7777
return str_replace("\n</pre", '</pre', rtrim($dump));
7878
}
7979

80-
public function dumpLog(Environment $env, string $message, Data $context = null): string
80+
public function dumpLog(Environment $env, string $message, ?Data $context = null): string
8181
{
8282
$message = self::escape($env, $message);
8383
$message = preg_replace('/&quot;(.*?)&quot;/', '&quot;<b>$1</b>&quot;', $message);

0 commit comments

Comments
 (0)