Skip to content

Commit

Permalink
Fix PsalmRestarter::restart() signature
Browse files Browse the repository at this point in the history
XdebugHandler v2 did not have the param type hint

Fixes #9345
  • Loading branch information
weirdan committed Feb 20, 2023
1 parent fbef36a commit 1b0f322
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Psalm/Internal/Fork/PsalmRestarter.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,9 @@ protected function requiresRestart($default): bool
* No type hint to allow xdebug-handler v1 and v2 usage
*
* @param string[] $command
* @phpcsSuppress SlevomatCodingStandard.TypeHints.ParameterTypeHint.MissingNativeTypeHint
*/
protected function restart(array $command): void
protected function restart($command): void
{
if ($this->required && $this->tmpIni) {
$regex = '/^\s*(extension\s*=.*(' . implode('|', $this->disabled_extensions) . ').*)$/mi';
Expand Down

0 comments on commit 1b0f322

Please sign in to comment.