diff --git a/src/Restarter.php b/src/Restarter.php index 7960e4a..ec74fb0 100644 --- a/src/Restarter.php +++ b/src/Restarter.php @@ -11,8 +11,11 @@ protected function restart($command) { assert(null !== $this->tmpIni); $contents = file_get_contents($this->tmpIni); - $contents = preg_replace('/^auto_prepend_file="' . preg_quote(__DIR__ . '/prepend.php', '/') . '"/m', '', $contents, -1, $count); - var_dump($count); + $contents = preg_replace( + '/^auto_prepend_file="' . preg_quote(__DIR__ . '/prepend.php', '/') . '"/m', + '', + $contents + ); file_put_contents($this->tmpIni, $contents); parent::restart($command); }