Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

improvement: use null coalescing operator #359

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
[routing] improvement: use null coalescing operator
  • Loading branch information
connorhu committed Apr 9, 2024
commit 2e1e798c467f15583057c139704c390adc07a63b
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