Skip to content

Commit ce51bee

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Use ::class keyword when possible
2 parents 978489e + 419ae98 commit ce51bee

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ErrorHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public function __construct(BufferingLogger $bootstrappingLogger = null, bool $d
187187
$this->bootstrappingLogger = $bootstrappingLogger;
188188
$this->setDefaultLogger($bootstrappingLogger);
189189
}
190-
$traceReflector = new \ReflectionProperty('Exception', 'trace');
190+
$traceReflector = new \ReflectionProperty(\Exception::class, 'trace');
191191
$traceReflector->setAccessible(true);
192192
$this->configureException = \Closure::bind(static function ($e, $trace, $file = null, $line = null) use ($traceReflector) {
193193
$traceReflector->setValue($e, $trace);

Resources/views/exception_full.html.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
);
1818
</script>
1919

20-
<?php if (class_exists('Symfony\Component\HttpKernel\Kernel')) { ?>
20+
<?php if (class_exists(\Symfony\Component\HttpKernel\Kernel::class)) { ?>
2121
<header>
2222
<div class="container">
2323
<h1 class="logo"><?= $this->include('assets/images/symfony-logo.svg'); ?> Symfony Exception</h1>

0 commit comments

Comments
 (0)