minor #12551 remove an unneeded check (xabbuh)

This PR was merged into the 2.5 branch.

Discussion
----------

remove an unneeded check

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | no
| BC breaks?    |no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets |
| License       | MIT
| Doc PR        |

It is already checked in the `isEnabled()` method if the current PHP
build is HHVM and the `server:run` command is never enabled then.
Thus, it's not needed to check for HHVM on every command execution.

Commits
-------

2035fea remove an unneeded check
This commit is contained in:
Fabien Potencier 2014-11-28 10:36:33 +01:00
commit 155fa96bff

View File

@ -83,12 +83,6 @@ EOF
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
if (defined('HHVM_VERSION')) {
$output->writeln('<error>This command is not supported on HHVM.</error>');
return 1;
}
$documentRoot = $input->getOption('docroot');
if (null === $documentRoot) {