-
Notifications
You must be signed in to change notification settings - Fork 874
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
PHP: Adding a new error hint, as suggested in #5078. #5648
PHP: Adding a new error hint, as suggested in #5078. #5648
Conversation
...r/src/org/netbeans/modules/php/editor/verification/ReturnStatementWithoutValueHintError.java
Outdated
Show resolved
Hide resolved
e3b557b
to
035ad15
Compare
@troizet Please implement it in |
That's what I did at first. Then I decided it would be easier to do it separately. OK, I'll try again. Thank you! |
035ad15
to
4b1c713
Compare
php/php.editor/src/org/netbeans/modules/php/editor/verification/ReturnTypeHintError.java
Outdated
Show resolved
Hide resolved
php/php.editor/src/org/netbeans/modules/php/editor/verification/ReturnTypeHintError.java
Outdated
Show resolved
Hide resolved
...data/testfiles/verification/ReturnTypeHintError/testReturnStatementWithoutValueHintError.php
Show resolved
Hide resolved
Please fix the commit message and the title of this PR. Thanks! |
php/php.editor/src/org/netbeans/modules/php/editor/verification/ReturnTypeHintError.java
Outdated
Show resolved
Hide resolved
php/php.editor/src/org/netbeans/modules/php/editor/verification/ReturnTypeHintError.java
Show resolved
Hide resolved
php/php.editor/src/org/netbeans/modules/php/editor/verification/ReturnTypeHintError.java
Outdated
Show resolved
Hide resolved
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.
Thanks for your work!
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.
Please, look at the comments and try to resolve them. Thank you.
…ue if the return type is specified for the function, as suggested in apache#5078 Fixing the cancelability bug in ReturnTypeHintError by reverting from a for each loop to a normal loop
4b1c713
to
f55ac21
Compare
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.
Thanks for your work.
@junichi11 Not sure whether we need all the approvals; if not, feel free to merge anytime. Thank you. |
Thanks to all! |
Adding a new hint that checks if the return statement has a value if the return type is specified for the function, as suggested in #5078.