-
Notifications
You must be signed in to change notification settings - Fork 147
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
Assert::upper() correct usage #299
Comments
Assertion is for
How exactly is typed |
It is not typed, it's
|
I'm able to reproduce it this way:
So
As a workaround for now i've used Assert::true
|
Indeed, I could reproduce it on the psalm.dev: |
What would the correct type assertion be? Or does it even need one? |
Hello
I'm trying to use Assert::upper() method, but psalm assert
* @psalm-assert !lowercase-string $value
link confuses me - how the string can be upper if we assert it is lowercase?So following code does not pass psalm check:
The error is:
So what is correct usage of upper assertion?
The text was updated successfully, but these errors were encountered: