Skip to content

Commit

Permalink
Remove unreachable code
Browse files Browse the repository at this point in the history
The try/finally block will either return or throw.
Additionally, $socket was never defined.

Detected via static analysis
  • Loading branch information
TysonAndre authored and nicolas-grekas committed Jan 28, 2019
1 parent 23e9985 commit 2fb8f49
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Symfony/Component/VarDumper/Server/Connection.php
Expand Up @@ -91,7 +91,5 @@ private function createSocket()
} finally {
restore_error_handler();
}

return $socket;
}
}

0 comments on commit 2fb8f49

Please sign in to comment.