mirror of
https://github.com/danog/psalm.git
synced 2024-11-27 12:55:26 +01:00
Merge pull request #7211 from johnstevenson/xdebug-handler-3
This commit is contained in:
commit
45c49b570a
@ -26,7 +26,7 @@
|
||||
"amphp/byte-stream": "^1.5",
|
||||
"composer/package-versions-deprecated": "^1.8.0",
|
||||
"composer/semver": "^1.4 || ^2.0 || ^3.0",
|
||||
"composer/xdebug-handler": "^1.1 || ^2.0",
|
||||
"composer/xdebug-handler": "^1.1 || ^2.0 || ^3.0",
|
||||
"dnoegel/php-xdg-base-dir": "^0.1.1",
|
||||
"felixfbecker/advanced-json-rpc": "^3.0.3",
|
||||
"felixfbecker/language-server-protocol": "^1.5",
|
||||
|
@ -32,6 +32,7 @@ class PsalmRestarter extends XdebugHandler
|
||||
}
|
||||
|
||||
/**
|
||||
* No type hint to allow xdebug-handler v1 and v2 usage
|
||||
* @param bool $default
|
||||
*/
|
||||
protected function requiresRestart($default): bool
|
||||
@ -47,7 +48,8 @@ class PsalmRestarter extends XdebugHandler
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mixed $command
|
||||
* No type hint to allow xdebug-handler v1 and v2 usage
|
||||
* @param string|string[] $command
|
||||
*/
|
||||
protected function restart($command): void
|
||||
{
|
||||
@ -60,7 +62,7 @@ class PsalmRestarter extends XdebugHandler
|
||||
file_put_contents($this->tmpIni, $content);
|
||||
}
|
||||
|
||||
/** @psalm-suppress MixedArgument */
|
||||
/** @psalm-suppress PossiblyInvalidArgument */
|
||||
parent::restart($command);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user