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

[NETBEANS-5599] PHP 8.1 Support: Final class constants part #3331

Merged
merged 2 commits into from Nov 24, 2021

Conversation

junichi11
Copy link
Member

@junichi11 junichi11 commented Nov 24, 2021

https://issues.apache.org/jira/browse/NETBEANS-5599

RFC: https://wiki.php.net/rfc/final_class_const

  • Add PHP 8.1 to the PhpVersion
  • Fix the grammar file
  • Add FinalModifierHintError and PHP81UnhandledError
  • Add unit tests

Screenshots

PHP Version:

nb-php81-new-php-version-settings

with PHP 8.1

nb-php81-final-class-constant

with PHP 8.0

nb-php81-final-class-constant-php80

Errors for the final modifier

nb-php81-final-class-constants

@junichi11 junichi11 added the PHP [ci] enable extra PHP tests (php/php.editor) label Nov 24, 2021
@junichi11 junichi11 added this to the NB13 milestone Nov 24, 2021
* under the License.
*/

class FinalMethod {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add missing unit tests for final methods.

@junichi11
Copy link
Member Author

@tmysik I've started supporting PHP 8.1. Could you please review this when you have time? If there is no problem, let's merge it. I've created the new branch(php81-support) for it. Thanks!

Copy link
Member

@tmysik tmysik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, thanks for all the tests.

@tmysik tmysik merged commit 7f54ae6 into apache:php81-support Nov 24, 2021
@junichi11
Copy link
Member Author

@tmysik Thank you as always :)

@junichi11 junichi11 deleted the php81-final-class-constants branch November 24, 2021 11:41
@tmysik
Copy link
Member

tmysik commented Nov 24, 2021

@junichi11 You are the one doing the great work, not me ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PHP [ci] enable extra PHP tests (php/php.editor)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants