Skip to content

Commit

Permalink
Merge pull request #49 from claudiosanches/fix/psysh-init
Browse files Browse the repository at this point in the history
Fixed PsySH initialization
  • Loading branch information
schlessera authored Oct 31, 2020
2 parents ff17413 + aff4226 commit d29fced
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Shell_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public function __invoke( $_, $assoc_args ) {
}

if ( 'Psy\\Shell' === $class ) {
Psy\Shell::debug();
$shell = new Psy\Shell();
$shell->run();
} else {
$repl = new $class( 'wp> ' );
$repl->start();
Expand Down

0 comments on commit d29fced

Please sign in to comment.