Skip to content

Commit 92bd870

Browse files
javiereguiluzfabpot
authored andcommitted
Standardize the name of the exception variables
1 parent 977adc9 commit 92bd870

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

DataCollector/RequestDataCollector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ public function collect(Request $request, Response $response, \Exception $except
125125
'file' => $r->getFileName(),
126126
'line' => $r->getStartLine(),
127127
);
128-
} catch (\ReflectionException $re) {
128+
} catch (\ReflectionException $e) {
129129
if (is_callable($controller)) {
130130
// using __call or __callStatic
131131
$this->data['controller'] = array(

Tests/DependencyInjection/ContainerAwareHttpKernelTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,10 @@ public function testHandleRestoresThePreviousRequestOnException($type)
137137
try {
138138
$kernel->handle($request, $type);
139139
$this->fail('->handle() suppresses the controller exception');
140-
} catch (\PHPUnit_Framework_Exception $exception) {
141-
throw $exception;
142-
} catch (\Exception $actual) {
143-
$this->assertSame($expected, $actual, '->handle() throws the controller exception');
140+
} catch (\PHPUnit_Framework_Exception $e) {
141+
throw $e;
142+
} catch (\Exception $e) {
143+
$this->assertSame($expected, $e, '->handle() throws the controller exception');
144144
}
145145
}
146146

0 commit comments

Comments
 (0)