Skip to content

Commit

Permalink
give a chance to restart process with phar.readonly disabled even if …
Browse files Browse the repository at this point in the history
…xdebug is not available
  • Loading branch information
llaville committed Nov 4, 2024
1 parent 356b358 commit 1e1473a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Composer/RestartHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ class RestartHandler extends XdebugHandler
/** @noinspection PhpVoidFunctionResultUsedInspection */
protected function requiresRestart(bool $default): bool
{
if (!$default) {
return false;
if ($default || (bool) ini_get('phar.readonly')) {
// give a chance to restart process with phar.readonly disabled even if xdebug is not available
return true;
}

$version = (string) phpversion('xdebug');
Expand Down

0 comments on commit 1e1473a

Please sign in to comment.