-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Restrict the possible values for the casing options under the Portability\
NS
#5926
Conversation
phansys
commented
Feb 15, 2023
Q | A |
---|---|
Type | improvement |
Fixed issues | n/a |
0984157
to
4fc43bc
Compare
Could you please help me to resolve the CS issues?
Thank you in advance. |
57b54c8
to
23d8ef0
Compare
Create class constants as alias for the global constants and reference those in your doc block. |
I've reported vimeo/psalm#9320 to check if it will be supported in the future.
I'll push a new commit with this approach. Thank you! |
85ffe81
to
ed99561
Compare
ed99561
to
1d26420
Compare
6f4f3c0
to
69d2bc2
Compare
69d2bc2
to
dbeb3af
Compare
@@ -18,7 +18,7 @@ public function testGetServerVersion(): void | |||
->method('getServerVersion') | |||
->willReturn('1.2.3'); | |||
|
|||
$connection = new Connection($driverConnection, new Converter(false, false, 0)); | |||
$connection = new Connection($driverConnection, new Converter(false, false, Converter::CASE_LOWER)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wait, why did you change these tests? That shouldn't be necessary, should it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, this change is not strictly required, as the previous value (0) is identical to the value provided by this constant. I made these replacements in order to be consistent with the usage of these constants, as I think this also help as an example.
I can revert these changes if you think they are not a proper move for this PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, you're right. It's better this way, thanks for the explanation. Let's keep the change.
dbeb3af
to
c61bd4a
Compare
LGTM. I'll merge this change as soon as we create the 3.7.x branch. Thank you very much. |
Portability\
NSPortability\
NS