Skip to content

Commit 0876cb2

Browse files
Merge branch '3.4' into 4.3
* 3.4: Improve some URLs Fix test compatibility with 4.x components [Cache] cs fix
2 parents 29725c0 + f83f0db commit 0876cb2

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public function load(array $configs, ContainerBuilder $container)
225225

226226
if ($this->isConfigEnabled($container, $config['session'])) {
227227
if (!\extension_loaded('session')) {
228-
throw new LogicException('Session support cannot be enabled as the session extension is not installed. See https://www.php.net/session.installation for instructions.');
228+
throw new LogicException('Session support cannot be enabled as the session extension is not installed. See https://php.net/session.installation for instructions.');
229229
}
230230

231231
$this->sessionConfigEnabled = true;

Templating/Helper/CodeHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function fileExcerpt($file, $line)
131131
}
132132

133133
// highlight_file could throw warnings
134-
// see https://bugs.php.net/bug.php?id=25725
134+
// see https://bugs.php.net/25725
135135
$code = @highlight_file($file, true);
136136
// remove main code/span tags
137137
$code = preg_replace('#^<code.*?>\s*<span.*?>(.*)</span>\s*</code>#s', '\\1', $code);

Tests/Controller/ControllerTraitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -426,10 +426,10 @@ public function testGenerateUrl()
426426
public function testRedirect()
427427
{
428428
$controller = $this->createController();
429-
$response = $controller->redirect('http://dunglas.fr', 301);
429+
$response = $controller->redirect('https://dunglas.fr', 301);
430430

431431
$this->assertInstanceOf('Symfony\Component\HttpFoundation\RedirectResponse', $response);
432-
$this->assertSame('http://dunglas.fr', $response->getTargetUrl());
432+
$this->assertSame('https://dunglas.fr', $response->getTargetUrl());
433433
$this->assertSame(301, $response->getStatusCode());
434434
}
435435

0 commit comments

Comments
 (0)