[Sprint/NuancedNumbat](feat): Enable feature flags when staging cookie set. #857
0/2 threads resolved
49 49 { 50 50 $features = $this->config->get('features') ?: []; 51 51 52 $featureOverrides = empty($_COOKIE['staging-features']) - Developer
Need to change empty call to use the ?? operator instead
49 49 { 50 50 $features = $this->config->get('features') ?: []; 51 51 52 $featureOverrides = empty($_COOKIE['staging-features']) 53 ?: json_decode(base64_decode($_COOKIE['staging-features'], true), true); 54 if ($featureOverrides[$feature]) { 55 return $featureOverrides[$feature]; 56 } 57 52 58 if (!isset($features[$feature])) { 53 59 error_log("[Features\Manager] Feature '{$feature}' is not declared. Assuming false."); 54 60 - Developer
Need to add to export