Skip to content

Commit a1ba780

Browse files
committed
[routing] improvement: use null coalescing operator
1 parent eca0d02 commit a1ba780

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/routing/sfRouting.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function initialize(sfEventDispatcher $dispatcher, ?sfCache $cache = null
6868
{
6969
$this->dispatcher = $dispatcher;
7070

71-
$options['debug'] = isset($options['debug']) ? (bool) $options['debug'] : false;
71+
$options['debug'] = (bool) $options['debug'] ?? false;
7272

7373
// disable caching when in debug mode
7474
$this->cache = $options['debug'] ? null : $cache;

0 commit comments

Comments
 (0)