Run Rector on your code to see what it can do for you:
public function getString(): string { return $this->getNull() ?? 'Hey'; } - - private function getNull(): ?string { - return null; - } }
Applied Rules:
Not a change you expect?
rector.php