Skip to content

Commit 749f009

Browse files
committed
Use null coalesce operator
1 parent 8e12c9d commit 749f009

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/JohnKary/PHPUnit/Listener/SpeedTrapListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -308,8 +308,8 @@ protected function renderFooter()
308308
*/
309309
protected function loadOptions(array $options)
310310
{
311-
$this->slowThreshold = isset($options['slowThreshold']) ? $options['slowThreshold'] : 500;
312-
$this->reportLength = isset($options['reportLength']) ? $options['reportLength'] : 10;
311+
$this->slowThreshold = $options['slowThreshold'] ?? 500;
312+
$this->reportLength = $options['reportLength'] ?? 10;
313313
}
314314

315315
/**

0 commit comments

Comments
 (0)