Run Rector on your code to see what it can do for you:
<?php class TfaBadge { - private ?\stdClass $customerInput; - - public function __construct( - \stdClass $customerInput, - ) { - $this->customerInput = $customerInput; + public function __construct(private ?\stdClass $customerInput) + { } public function markResolved(): void
Applied Rules:
Not a change you expect?
rector.php