| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | protected function restart($command): void |
||
| 52 | { |
||
| 53 | if ($this->required) { |
||
| 54 | if (false === @file_put_contents($this->tmpIni, 'phar.readonly=0'.PHP_EOL, FILE_APPEND)) { |
||
| 55 | throw new IOException( |
||
| 56 | sprintf('Failed to write file "%s".', $this->tmpIni), |
||
| 57 | 0, |
||
| 58 | null, |
||
| 59 | $this->tmpIni |
||
| 60 | ); |
||
| 61 | } |
||
| 62 | |||
| 63 | // TODO: log that phar.readonly was appended: https://github.com/composer/xdebug-handler/pull/51 |
||
| 64 | } |
||
| 65 | |||
| 66 | parent::restart($command); |
||
| 67 | } |
||
| 69 |