Skip to content

Commit

Permalink
Merge pull request #6684 from orklah/empty-reconciliation
Browse files Browse the repository at this point in the history
improve empty/falsy reconciliation
  • Loading branch information
orklah committed Oct 20, 2021
2 parents 541a1ed + cf8e443 commit 3d9f973
Show file tree
Hide file tree
Showing 6 changed files with 347 additions and 428 deletions.
5 changes: 4 additions & 1 deletion src/Psalm/Internal/LanguageServer/ProtocolStreamReader.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,10 @@ private function readMessages(string $buffer) : int
if ($msg) {
++$emitted_messages;
$this->emit('message', [$msg]);
/** @psalm-suppress DocblockTypeContradiction */
/**
* @psalm-suppress DocblockTypeContradiction
* @psalm-suppress ParadoxicalCondition
*/
if (!$this->is_accepting_new_requests) {
// If we fork, don't read any bytes in the input buffer from the worker process.
$this->emitClose();
Expand Down
Loading

0 comments on commit 3d9f973

Please sign in to comment.