1
0
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:
Bruce Weirdan 2021-12-26 23:21:51 +02:00 committed by GitHub
commit 45c49b570a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -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",

View File

@ -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);
}
}