You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Method capitalization incorrect between code, readme and stubs #2660
There are 3 differently capitalized versions of this command (and various others). While this isn't an issue with PHP, it results in various code style tools and IDEs to report errors for capitalization.
While this isn't an issue with PHP, it results in various code style tools and IDEs to report errors for capitalization.
I've run into this too e.g. with intelephense/phpstan in vim complaining that hmset isn't a method but hMSet is. Honestly I kind of feel like that's a bug in the linter since PHP method names are not case sensitive.
I'm fine with moving toward normalization but the problem is how should they be normalized. All lowercase is harder to read but there are so many server commands with various naming strategies that we probably can't get to completely consistent camel casing for every one of them.
I guess the upside if we change them is that it could be done with a program.
like that's a bug in the linter since PHP method names are not case sensitive.
It definitely is, however it's unfortunately something that was/is present in some circumstances in psalm, phpstan and phpstorm in static analysis, but as well as for purely code style reporting
can't get to completely consistent camel casing for every one of them.
Which ones specifically?
I think how it's done in the headlines of readme makes most sense, since that is what people generally check first and also seems to be consistent/make sense
Activity
michael-grunder commentedon May 19, 2025
I've run into this too e.g. with intelephense/phpstan in vim complaining that
hmsetisn't a method buthMSetis. Honestly I kind of feel like that's a bug in the linter since PHP method names are not case sensitive.I'm fine with moving toward normalization but the problem is how should they be normalized. All lowercase is harder to read but there are so many server commands with various naming strategies that we probably can't get to completely consistent camel casing for every one of them.
I guess the upside if we change them is that it could be done with a program.
kkmuffme commentedon May 20, 2025
It definitely is, however it's unfortunately something that was/is present in some circumstances in psalm, phpstan and phpstorm in static analysis, but as well as for purely code style reporting
Which ones specifically?
I think how it's done in the headlines of readme makes most sense, since that is what people generally check first and also seems to be consistent/make sense