-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
non-empty-literal-string|literal-string is inferred as string #10925
Comments
I found these snippets: https://psalm.dev/r/21adcbe806<?php
/**
* @param non-empty-literal-string $a
* @param literal-string $b
*/
function foo(string $a, string $b) {
/** @psalm-trace $c */
$c = random_int(0, 12) ? $a : $b;
}
|
Yeah, it should be around
The TypeCombiner is the class that makes specifically, |
Thanks, the PR is done #10930 (I also will need your help for #10927 (comment)) |
https://psalm.dev/r/21adcbe806
The text was updated successfully, but these errors were encountered: