Skip to content

Commit

Permalink
test match
Browse files Browse the repository at this point in the history
  • Loading branch information
staabm committed May 8, 2024
1 parent 1171251 commit 56453eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/PHPStan/Analyser/data/bug-10952c.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,11 @@ public function test(): void
} else {
assertType("string", $string);
}

match (true) {
(strlen($string) > 1) => assertType('non-empty-string', $string),
default => assertType("string", $string),
};

}
}

0 comments on commit 56453eb

Please sign in to comment.