Skip to content

Commit

Permalink
version check not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
jrushlow committed May 24, 2022
1 parent 91bc781 commit c639f63
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions src/Command/MakerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@ protected function initialize(InputInterface $input, OutputInterface $output): v
$dependencies = new DependencyBuilder();
$this->maker->configureDependencies($dependencies, $input);

if (!$dependencies->isPhpVersionSatisfied()) {
throw new RuntimeCommandException('The make:entity command requires that you use PHP 7.1 or higher.');
}

if ($missingPackagesMessage = $dependencies->getMissingPackagesMessage($this->getName())) {
throw new RuntimeCommandException($missingPackagesMessage);
}
Expand Down
9 changes: 0 additions & 9 deletions src/DependencyBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ final class DependencyBuilder
{
private array $dependencies = [];
private array $devDependencies = [];
private int $minimumPHPVersion = 70100;

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

/**
* @internal
*/
public function isPhpVersionSatisfied(): bool
{
return \PHP_VERSION_ID >= $this->minimumPHPVersion;
}

private function getRequiredDependencyNames(array $dependencies): array
{
$packages = [];
Expand Down

0 comments on commit c639f63

Please sign in to comment.