Skip to content

Commit

Permalink
Fix xdebug handling (#5544)
Browse files Browse the repository at this point in the history
* Fix xdebug handling

* remove useless comment
  • Loading branch information
staabm authored Feb 3, 2024
1 parent 1848724 commit b0ad364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Console/ConsoleApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ public function __construct(array $commands)

public function doRun(InputInterface $input, OutputInterface $output): int
{
// @fixes https://github.com/rectorphp/rector/issues/2205
$isXdebugAllowed = $input->hasParameterOption('--xdebug');
if ($isXdebugAllowed) {
if (!$isXdebugAllowed) {
$xdebugHandler = new XdebugHandler('rector');
$xdebugHandler->setPersistent();
$xdebugHandler->check();
unset($xdebugHandler);
}
Expand Down

0 comments on commit b0ad364

Please sign in to comment.