Skip to content

Commit d4d686c

Browse files
committed
Merge branch '2.3' into 2.6
* 2.3: replaced the last remaining is_integer() call [2.3] [Config] [Console] [DependencyInjection] [DomCrawler] [Form] [HttpKernel] [PropertyAccess] [Security] [Translation] [Yaml] static code analysis, code cleanup [Validator] Added missing galician (gl) translations [travis] Tests Security sub-components [travis] Tests Security sub-components CS fixes [travis] test with php nightly Conflicts: src/Symfony/Component/Security/Http/Tests/Firewall/RememberMeListenerTest.php
2 parents fb71708 + 3c2503e commit d4d686c

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

EventListener/RouterListener.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,7 @@ public function onKernelRequest(GetResponseEvent $event)
132132
}
133133

134134
$request->attributes->add($parameters);
135-
unset($parameters['_route']);
136-
unset($parameters['_controller']);
135+
unset($parameters['_route'], $parameters['_controller']);
137136
$request->attributes->set('_route_params', $parameters);
138137
} catch (ResourceNotFoundException $e) {
139138
$message = sprintf('No route found for "%s %s"', $request->getMethod(), $request->getPathInfo());

Tests/DataCollector/LoggerDataCollectorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public function testCollect($nb, $logs, $expectedLogs, $expectedDeprecationCount
2929

3030
$this->assertSame('logger', $c->getName());
3131
$this->assertSame($nb, $c->countErrors());
32-
$this->assertSame($expectedLogs ? $expectedLogs : $logs, $c->getLogs());
32+
$this->assertSame($expectedLogs ?: $logs, $c->getLogs());
3333
$this->assertSame($expectedDeprecationCount, $c->countDeprecations());
3434
$this->assertSame($expectedScreamCount, $c->countScreams());
3535

0 commit comments

Comments
 (0)