Skip to content

Commit 39e8e57

Browse files
committed
deprecate unused method
1 parent 33315ea commit 39e8e57

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

src/ConsoleStyle.php

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,10 @@
2121
*/
2222
final class ConsoleStyle extends SymfonyStyle
2323
{
24-
private $output;
25-
26-
public function __construct(InputInterface $input, OutputInterface $output)
27-
{
28-
$this->output = $output;
29-
24+
public function __construct(
25+
InputInterface $input,
26+
private OutputInterface $output,
27+
) {
3028
parent::__construct($input, $output);
3129
}
3230

src/DependencyBuilder.php

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@
1313

1414
final class DependencyBuilder
1515
{
16-
private $dependencies = [];
17-
private $devDependencies = [];
18-
19-
private $minimumPHPVersion = 70100;
16+
private array $dependencies = [];
17+
private array $devDependencies = [];
18+
private int $minimumPHPVersion = 70100;
2019

2120
/**
2221
* Add a dependency that will be reported if the given class is missing.
@@ -44,7 +43,7 @@ public function addClassDependency(string $class, string $package, bool $require
4443

4544
public function requirePHP71(): void
4645
{
47-
// no-op - MakerBundle now required PHP 7.1
46+
trigger_deprecation('symfony/maker-bundle', '0.0.0', 'requirePHP71() is deprecated and will be removed in a future version.');
4847
}
4948

5049
/**

0 commit comments

Comments
 (0)