When trying to match callable-strings psalm doesn't let you lowercase them for consistency.
For example checking to see if a function is in a list of functions with in_array won't work unless the case is correct, despite PHP being case insensitive in practice.
This is not the case with strtoupper so I guess it's assuming it's already lowercase
https://psalm.dev/r/aa5d92c94e
When trying to match callable-strings psalm doesn't let you lowercase them for consistency.
For example checking to see if a function is in a list of functions with
in_array
won't work unless the case is correct, despite PHP being case insensitive in practice.This is not the case with
strtoupper
so I guess it's assuming it's already lowercase