Skip to content
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

NamingConventions::isEqual(): minor simplification #563

Merged
merged 1 commit into from
Mar 16, 2024

Conversation

jrfnl
Copy link
Member

@jrfnl jrfnl commented Mar 1, 2024

No need to "translate" the ASCII characters from uppercase to lowercase, the PHP native strcasecmp() function can do the comparison correctly as it only compares ASCII letters in a case-insensitive way.

Ref: https://www.php.net/manual/en/function.strcasecmp.php

@jrfnl jrfnl modified the milestones: 1.1.0, 1.0.x Next Mar 16, 2024
No need to "translate" the ASCII characters from uppercase to lowercase, the PHP native `strcasecmp()` function can do the comparison correctly as it only compares ASCII letters in a case-insensitive way.

Ref: https://www.php.net/manual/en/function.strcasecmp.php
@jrfnl jrfnl force-pushed the feature/namingconventions-minor-simplification branch from 2bed23d to c6fabf3 Compare March 16, 2024 05:50
@jrfnl
Copy link
Member Author

jrfnl commented Mar 16, 2024

Updated the version number in the @deprecated tags to 1.0.10. This deprecation (without notice) does not need to wait for the 1.1.0 release.

@jrfnl jrfnl merged commit c4d88f4 into develop Mar 16, 2024
53 of 54 checks passed
@jrfnl jrfnl deleted the feature/namingconventions-minor-simplification branch March 16, 2024 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants