ALPHA 3.0.2a

This commit is contained in:
TheGamecraft
2018-09-10 08:51:18 -04:00
parent 7fe13ae0a7
commit 0e0ef86b71
1404 changed files with 10604 additions and 33714 deletions

View File

@@ -103,13 +103,13 @@ HELP
// special case for !!
if ($code === '!!') {
$history = $this->readline->listHistory();
if (count($history) < 2) {
if (\count($history) < 2) {
throw new \InvalidArgumentException('No previous command to replay');
}
$code = $history[count($history) - 2];
$code = $history[\count($history) - 2];
}
if (strpos('<?', $code) === false) {
if (\strpos('<?', $code) === false) {
$code = '<?php ' . $code;
}
@@ -132,7 +132,7 @@ HELP
try {
return $this->parser->parse($code);
} catch (\PhpParser\Error $e) {
if (strpos($e->getMessage(), 'unexpected EOF') === false) {
if (\strpos($e->getMessage(), 'unexpected EOF') === false) {
throw $e;
}