Skip to content

Commit

Permalink
Revert "Add notice to output about deprecation of HHVM and PHP < 5.6"
Browse files Browse the repository at this point in the history
This reverts commit 57dcf45.
  • Loading branch information
theseer committed Jul 2, 2017
1 parent 7a328de commit 36756b1
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 37 deletions.
2 changes: 0 additions & 2 deletions build/phar/autoload.php.in
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ spl_autoload_register(
Phar::mapPhar('phpdox.phar');
define('PHPDOX_PHAR', 'phpdox.phar');

require 'phar://phpdox.phar/phpdox/runtimecheck.php';

$factory = new TheSeer\phpDox\Factory(
new \TheSeer\phpDox\FileInfo('phar://' . PHPDOX_PHAR),
new \TheSeer\phpDox\Version('___VERSION___')
Expand Down
16 changes: 14 additions & 2 deletions phpdox
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,19 @@
*
*/

require __DIR__ . '/src/runtimecheck.php';
if (!defined('HHVM_VERSION') && (version_compare(phpversion(), '5.5', 'lt'))) {
fwrite(
STDERR,
sprintf(
"phpDox requires PHP 5.5 or later; " .
"Upgrading to the latest version of PHP is highly recommended. (Version used: %s)\n\n",
phpversion()
)
);

die(1);
}

require __DIR__ . '/src/autoload.php';

$found = false;
Expand All @@ -61,7 +73,7 @@ if (!$found) {

$factory = new TheSeer\phpDox\Factory(
new \TheSeer\phpDox\FileInfo(__DIR__),
new \TheSeer\phpDox\Version('0.10.1')
new \TheSeer\phpDox\Version('0.11.0-dev')
);
exit($factory->getCLI()->run(
new TheSeer\phpDox\CLIOptions($_SERVER['argv'])
Expand Down
33 changes: 0 additions & 33 deletions src/runtimecheck.php

This file was deleted.

0 comments on commit 36756b1

Please sign in to comment.