apache / apache/netbeans

[PHP] Enum instantiation must produce error

Open
#5,087 0 comments 0 reactions 0 assignees View on GitHub
kind:feature PHP
Dominant language
Java
Stars
3.1k
Forks
935
Avg merge
2d 3h
Merged PRs (30d)
17

Description

### Apache NetBeans version

Apache NetBeans 16

### What happened

Enum can't be instantiated.

### How to reproduce

```php

Contributor guide

Open the contributing guide

Research direction

Start with the supplied PHP reproduction in NetBeans' PHP support and trace how enum construction is analyzed. Done means `new Suit`, `new static`, and `new self` are reported as errors, while the two static method calls remain valid.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.