Skip to content

Commit c639f63

Browse files
committed
version check not needed
1 parent 91bc781 commit c639f63

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/Command/MakerCommand.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
5757
$dependencies = new DependencyBuilder();
5858
$this->maker->configureDependencies($dependencies, $input);
5959

60-
if (!$dependencies->isPhpVersionSatisfied()) {
61-
throw new RuntimeCommandException('The make:entity command requires that you use PHP 7.1 or higher.');
62-
}
63-
6460
if ($missingPackagesMessage = $dependencies->getMissingPackagesMessage($this->getName())) {
6561
throw new RuntimeCommandException($missingPackagesMessage);
6662
}

src/DependencyBuilder.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ final class DependencyBuilder
1515
{
1616
private array $dependencies = [];
1717
private array $devDependencies = [];
18-
private int $minimumPHPVersion = 70100;
1918

2019
/**
2120
* Add a dependency that will be reported if the given class is missing.
@@ -109,14 +108,6 @@ public function getMissingPackagesMessage(string $commandName, $message = null):
109108
return $message;
110109
}
111110

112-
/**
113-
* @internal
114-
*/
115-
public function isPhpVersionSatisfied(): bool
116-
{
117-
return \PHP_VERSION_ID >= $this->minimumPHPVersion;
118-
}
119-
120111
private function getRequiredDependencyNames(array $dependencies): array
121112
{
122113
$packages = [];

0 commit comments

Comments
 (0)