Run Rector on your code to see what it can do for you:
public function resolve($key) { - if (isset($this->items[$key])) { - return $this->items[$key]; - } - - return $this->items[$key] = 'default'; + return $this->items[$key] ?? $this->items[$key] = 'default'; } }
Applied Rules:
Not a change you expect?
rector.php