-
-
Notifications
You must be signed in to change notification settings - Fork 1k
[fix] fix return type of method #2101
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
Conversation
|
I’m sure that changing without adding tests can cause new issues. Currently, this package has only 64% test coverage, so we can’t be sure all the changes you made are tested and will work fine. |
Yes, I agree. However, as you’ve stated, the coverage is poor, not that tests were not written. Could you please add tests for this new change? |
|
Rather than only updating the stub file and renaming methods, it would be more valuable to contribute by adding additional test coverage or developing new features, as this would have a greater positive impact on the project. This PR doesn’t require tests. Refactoring this part would be better, but I don’t have the time right now. If you can, please create a new PR for that. |
Debugging is a crucial part of keeping a clean, readable, and maintainable codebase. If the code had been written properly from the start, there wouldn’t be a need to update it later. Remember, what’s worth doing is worth doing well! The stubs, naming convention, and consistency are the foundation.
Sorry, but it does. It needs tests to verify that the method can be accessed, can return a string, and can return null. |
Suggested Tests for getTableName(): ?string
|
|
For more information, please check the linked issue and run the tests on your local environment. If you have suggestions for additional tests, feel free to create a new pull request. I’m not interested in arguing, but I’m happy to answer questions from anyone except you. |
|
Bro, no one is arguing with you here. Quality over quantity, please - these are necessary tests. We are here to collaborate, not to fight over every minor case. Please, have a great day. |
Hi,
This pull request fixes #2096.
The
getTableNamemethod’s return type can be null, so its type declaration has been updated.