Skip to content

Commit dfa4737

Browse files
authored
feature #1432 [make:controller] use promoted parameter
1 parent fc8038d commit dfa4737

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Maker/MakeController.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@
3434
*/
3535
final class MakeController extends AbstractMaker
3636
{
37-
private PhpCompatUtil $phpCompatUtil;
38-
39-
public function __construct(PhpCompatUtil $phpCompatUtil = null)
37+
public function __construct(private ?PhpCompatUtil $phpCompatUtil = null)
4038
{
4139
if (null === $phpCompatUtil) {
4240
@trigger_error(sprintf('Passing a "%s" instance is mandatory since version 1.42.0', PhpCompatUtil::class), \E_USER_DEPRECATED);

0 commit comments

Comments
 (0)