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

Replaced the function empty with a more strict comparison #83

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

kolodkinvalentin
Copy link
Contributor

Hi! I am actively using the library to generate classes in my project and I have found a minor bug. Properties with the name "0" throw an error.
Because PHP will consider a string containing a zero as empty, it makes the empty() function an unsuitable solution. I replaced function empty() with a check that it is explicitly equal to an empty string.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 10941233159

Details

  • 1 of 1 (100.0%) changed or added relevant line in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 98.848%

Totals Coverage Status
Change from base Build 10738436689: 0.0%
Covered Lines: 3003
Relevant Lines: 3038

💛 - Coveralls

@wol-soft wol-soft merged commit 488f687 into wol-soft:master Sep 19, 2024
5 checks passed
@kolodkinvalentin kolodkinvalentin deleted the fix-name-normalization branch September 19, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants