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
Inference estimation percentage glitch #3660
Comments
Hey @zerkms, can you reproduce the issue on https://psalm.dev ? |
I'd be interested in the result of |
Yep, there are several files with > than 100% and negative mixed. |
Do you have |
I have narrowed it down. In my case in one piece of code it was triggered by /** @var ?ResponseReceived $lastResponseReceived */
$lastResponseReceived = null;
$api->addListener(ResponseReceived::class, static function(Event $e) use(&$lastResponseReceived) {
if (!$e instanceof ResponseReceived) {
return;
}
$lastResponseReceived = $e;
});
...
Assert::isInstanceOf($lastResponseReceived, ResponseReceived::class);
$stopwatch->apiRequestResponse($lastResponseReceived); |
psalm version: 3.12.1
psalm.xml:
The text was updated successfully, but these errors were encountered: