Skip to content

Commit

Permalink
[routing] improvement: use null coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
connorhu committed Apr 9, 2024
1 parent f145eae commit 2e1e798
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routing/sfRouting.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function initialize(sfEventDispatcher $dispatcher, ?sfCache $cache = null
{
$this->dispatcher = $dispatcher;

$options['debug'] = isset($options['debug']) ? (bool) $options['debug'] : false;
$options['debug'] = (bool) $options['debug'] ?? false;

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

0 comments on commit 2e1e798

Please sign in to comment.