Run Rector on your code to see what it can do for you:
<?php final class SkipParamHook { - public function __construct(private string $foo { + public function __construct(private readonly string $foo { get { return $this->foo; }
Applied Rules:
Not a change you expect?
rector.php