8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f96639d + 0b693cf commit 6dfb6c5Copy full SHA for 6dfb6c5
EventListener/DebugHandlersListener.php
@@ -60,7 +60,7 @@ public function __construct(callable $exceptionHandler = null, LoggerInterface $
60
61
$this->exceptionHandler = $exceptionHandler;
62
$this->logger = $logger;
63
- $this->levels = null === $levels ? \E_ALL : $levels;
+ $this->levels = $levels ?? \E_ALL;
64
$this->throwAt = \is_int($throwAt) ? $throwAt : (null === $throwAt ? null : ($throwAt ? \E_ALL : null));
65
$this->scream = $scream;
66
$this->fileLinkFormat = $fileLinkFormat;
Profiler/Profile.php
@@ -156,11 +156,7 @@ public function setUrl($url)
156
*/
157
public function getTime()
158
{
159
- if (null === $this->time) {
160
- return 0;
161
- }
162
-
163
- return $this->time;
+ return $this->time ?? 0;
164
}
165
166
/**
Tests/KernelTest.php
@@ -709,7 +709,7 @@ protected function getBundle($dir = null, $parent = null, $className = null, $bu
709
$bundle
710
->expects($this->any())
711
->method('getName')
712
- ->willReturn(null === $bundleName ? \get_class($bundle) : $bundleName)
+ ->willReturn($bundleName ?? \get_class($bundle))
713
;
714
715