diff --git a/lib/routing/sfRouting.class.php b/lib/routing/sfRouting.class.php index 5c13c0206..7b0c245e4 100644 --- a/lib/routing/sfRouting.class.php +++ b/lib/routing/sfRouting.class.php @@ -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;