Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

self:console throws errors #1598

Closed
TeslaDethray opened this issue Feb 6, 2017 · 3 comments
Closed

self:console throws errors #1598

TeslaDethray opened this issue Feb 6, 2017 · 3 comments
Assignees
Milestone

Comments

@TeslaDethray
Copy link
Contributor

Expected behavior

I expect the console command to work and not throw errors.

Actual behavior

tesladethray@Tima:~/Pantheon/terminus $ t self:console

Psy Shell v0.8.1 (PHP 7.1.1 — cli) by Justin Hileman
PHP Fatal error:  Uncaught Error: Cannot re-assign $this in /Users/tesladethray/Pantheon/terminus/src/Commands/Self/ConsoleCommand.php(31) : eval()'d code:1
Stack trace:
#0 /Users/tesladethray/Pantheon/terminus/src/Commands/Self/ConsoleCommand.php(31) : eval()'d code(1): extract(Array)
#1 /Users/tesladethray/Pantheon/terminus/src/Commands/Self/ConsoleCommand.php(31): eval()
#2 [internal function]: Pantheon\Terminus\Commands\Self\ConsoleCommand->console(NULL, Array)
#3 /Users/tesladethray/Pantheon/terminus/vendor/consolidation/annotated-command/src/CommandProcessor.php(180): call_user_func_array(Array, Array)
#4 /Users/tesladethray/Pantheon/terminus/vendor/consolidation/annotated-command/src/CommandProcessor.php(129): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /Users/tesladethray/Pantheon/terminus/vendor/consolidation/annotated-command/src/CommandProcessor.php(104): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, A in /Users/tesladethray/Pantheon/terminus/src/Commands/Self/ConsoleCommand.php(31) : eval()'d code on line 1

Fatal error: Uncaught Error: Cannot re-assign $this in /Users/tesladethray/Pantheon/terminus/src/Commands/Self/ConsoleCommand.php(31) : eval()'d code:1
Stack trace:
#0 /Users/tesladethray/Pantheon/terminus/src/Commands/Self/ConsoleCommand.php(31) : eval()'d code(1): extract(Array)
#1 /Users/tesladethray/Pantheon/terminus/src/Commands/Self/ConsoleCommand.php(31): eval()
#2 [internal function]: Pantheon\Terminus\Commands\Self\ConsoleCommand->console(NULL, Array)
#3 /Users/tesladethray/Pantheon/terminus/vendor/consolidation/annotated-command/src/CommandProcessor.php(180): call_user_func_array(Array, Array)
#4 /Users/tesladethray/Pantheon/terminus/vendor/consolidation/annotated-command/src/CommandProcessor.php(129): Consolidation\AnnotatedCommand\CommandProcessor->runCommandCallback(Array, Object(Consolidation\AnnotatedCommand\CommandData))
#5 /Users/tesladethray/Pantheon/terminus/vendor/consolidation/annotated-command/src/CommandProcessor.php(104): Consolidation\AnnotatedCommand\CommandProcessor->validateRunAndAlter(Array, A in /Users/tesladethray/Pantheon/terminus/src/Commands/Self/ConsoleCommand.php(31) : eval()'d code on line 1
PHP Fatal error:  Uncaught Error: Cannot re-assign $this in /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php:63
Stack trace:
#0 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php(63): extract(Array)
#1 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php(142): Pantheon\Terminus\Commands\Self\ConsoleCommand->Psy\ExecutionLoop\{closure}(Object(Psy\Shell))
#2 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php(79): Psy\ExecutionLoop\Loop->run(Object(Psy\Shell))
#3 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/Shell.php(308): Psy\ExecutionLoop\ForkingLoop->run(Object(Psy\Shell))
#4 /Users/tesladethray/Pantheon/terminus/vendor/symfony/console/Application.php(122): Psy\Shell->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Psy\Output\ShellOutput))
#5 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/Shell.php(273): Symfony\Component\Console\App in /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php on line 63

Fatal error: Uncaught Error: Cannot re-assign $this in /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php:63
Stack trace:
#0 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php(63): extract(Array)
#1 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php(142): Pantheon\Terminus\Commands\Self\ConsoleCommand->Psy\ExecutionLoop\{closure}(Object(Psy\Shell))
#2 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/ForkingLoop.php(79): Psy\ExecutionLoop\Loop->run(Object(Psy\Shell))
#3 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/Shell.php(308): Psy\ExecutionLoop\ForkingLoop->run(Object(Psy\Shell))
#4 /Users/tesladethray/Pantheon/terminus/vendor/symfony/console/Application.php(122): Psy\Shell->doRun(Object(Symfony\Component\Console\Input\ArgvInput), Object(Psy\Output\ShellOutput))
#5 /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/Shell.php(273): Symfony\Component\Console\App in /Users/tesladethray/Pantheon/terminus/vendor/psy/psysh/src/Psy/ExecutionLoop/Loop.php on line 63

Steps to reproduce the behavior

Run self:console on master

@TeslaDethray TeslaDethray added this to the 1.0.1 milestone Feb 6, 2017
@TeslaDethray TeslaDethray self-assigned this Feb 6, 2017
@TeslaDethray
Copy link
Contributor Author

This only happens in 7.1.

@TeslaDethray
Copy link
Contributor Author

Open issue on PSYSH repo:
bobthecow/psysh#345

@TeslaDethray
Copy link
Contributor Author

Closed by #1599
Reimplementation issue is #1601

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant