-
Notifications
You must be signed in to change notification settings - Fork 656
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
Callmap return value non-empty-string not working for uniqid? #9839
Comments
I found these snippets: https://psalm.dev/r/076fdabdb7<?php
$x = uniqid();
/** @psalm-trace $x */;
|
Stubs take priority to callmap: psalm/stubs/CoreGenericFunctions.phpstub Line 1547 in bd0ba6e
This is an oversight that was made when adding taint support for this function It would be cool if we had tests that checks that you can't have types more specific in callmaps than in stubs |
Could you create a separate issue for that? |
Done |
https://psalm.dev/r/076fdabdb7
psalm's CallMap.php has a return type of "non-empty-string" specified, why does it say "string" in the trace though?
The text was updated successfully, but these errors were encountered: