Skip to content

Commit 5f3760a

Browse files
Arman-Hosseininicolas-grekas
authored andcommitted
Improve some URLs
1 parent 0bb32ea commit 5f3760a

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
@@ -234,7 +234,7 @@ public function load(array $configs, ContainerBuilder $container)
234234

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

240240
$this->sessionConfigEnabled = true;

Templating/Helper/CodeHelper.php

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

127127
// highlight_file could throw warnings
128-
// see https://bugs.php.net/bug.php?id=25725
128+
// see https://bugs.php.net/25725
129129
$code = @highlight_file($file, true);
130130
// remove main code/span tags
131131
$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
@@ -431,10 +431,10 @@ public function testGenerateUrl()
431431
public function testRedirect()
432432
{
433433
$controller = $this->createController();
434-
$response = $controller->redirect('http://dunglas.fr', 301);
434+
$response = $controller->redirect('https://dunglas.fr', 301);
435435

436436
$this->assertInstanceOf('Symfony\Component\HttpFoundation\RedirectResponse', $response);
437-
$this->assertSame('http://dunglas.fr', $response->getTargetUrl());
437+
$this->assertSame('https://dunglas.fr', $response->getTargetUrl());
438438
$this->assertSame(301, $response->getStatusCode());
439439
}
440440

0 commit comments

Comments
 (0)