-
Notifications
You must be signed in to change notification settings - Fork 661
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
Assuming __LINE__
is int
type
#9811
Labels
easy problems
Issues that can be fixed without background knowledge of Psalm
good first issue
Help wanted
Comments
I found these snippets: https://psalm.dev/r/d81c91af5e<?php
/**
* @param positive-int $i
*/
function line(int $i): int {
return $i;
}
line(__LINE__)
|
Seems legit :) You can change this here:
Up for a PR? |
orklah
added
easy problems
Issues that can be fixed without background knowledge of Psalm
Help wanted
good first issue
labels
May 23, 2023
Can try |
@orklah I found 10 places where I could replace |
Yeah, please do :) |
Fixed in #9921 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
easy problems
Issues that can be fixed without background knowledge of Psalm
good first issue
Help wanted
I presume a constant called
__LINE__
will always bepositive-int
. Cannot imagine file line-1
.Here is an example of a failure https://psalm.dev/r/d81c91af5e
The text was updated successfully, but these errors were encountered: