Skip to content

Commit 428f20b

Browse files
Merge branch '5.4' into 6.3
* 5.4: [Tests] Streamline [Validator] updated Romanian translation
2 parents 249cb24 + 4524e11 commit 428f20b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Tests/Controller/ProfilerControllerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ public function testPhpinfoActionWithProfilerDisabled()
340340
$twig = $this->createMock(Environment::class);
341341

342342
$controller = new ProfilerController($urlGenerator, null, $twig, []);
343-
$controller->phpinfoAction(Request::create('/_profiler/phpinfo'));
343+
$controller->phpinfoAction();
344344
}
345345

346346
public function testPhpinfoAction()
@@ -353,7 +353,7 @@ public function testPhpinfoAction()
353353
$this->assertStringContainsString('PHP License', $client->getResponse()->getContent());
354354
}
355355

356-
public static function provideCspVariants()
356+
public static function provideCspVariants(): array
357357
{
358358
return [
359359
[true],

Tests/Csp/ContentSecurityPolicyHandlerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public function testOnKernelResponse($nonce, $expectedNonce, Request $request, R
4646
}
4747
}
4848

49-
public static function provideRequestAndResponses()
49+
public static function provideRequestAndResponses(): array
5050
{
5151
$nonce = bin2hex(random_bytes(16));
5252

@@ -73,7 +73,7 @@ public static function provideRequestAndResponses()
7373
];
7474
}
7575

76-
public static function provideRequestAndResponsesForOnKernelResponse()
76+
public static function provideRequestAndResponsesForOnKernelResponse(): array
7777
{
7878
$nonce = bin2hex(random_bytes(16));
7979

Tests/EventListener/WebDebugToolbarListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function testToolbarIsNotInjectedOnRedirection($statusCode)
148148
$this->assertEquals('<html><head></head><body></body></html>', $response->getContent());
149149
}
150150

151-
public static function provideRedirects()
151+
public static function provideRedirects(): array
152152
{
153153
return [
154154
[301],

Tests/Resources/IconTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function testIconFileContents($iconFilePath)
3232
$this->assertMatchesRegularExpression('~<svg .* viewBox="0 0 \d+ \d+".+>.*</svg>~s', file_get_contents($iconFilePath), sprintf('The SVG file of the "%s" icon must include a "viewBox" attribute.', $iconFilePath));
3333
}
3434

35-
public static function provideIconFilePaths()
35+
public static function provideIconFilePaths(): array
3636
{
3737
return array_map(fn ($filePath) => (array) $filePath, glob(__DIR__.'/../../Resources/views/Icon/*.svg'));
3838
}

0 commit comments

Comments
 (0)