PHP blank line formatting for abstract method not working
- Dominant language
- Java
- Stars
- 3.1k
- Forks
- 935
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 17
Description
### Apache NetBeans version
Apache NetBeans 27
### What happened
Tools > Options > Formatting > PHP > Blank Lines > After function = 1
Expected:
Actual:
Notice `abstract function a(); ` did not have a blank line below it when it shoud have.
### Language / Project Type / NetBeans Component
PHP
### How to reproduce
Tools > Options > Formatting > PHP > Blank Lines > After function = 1
### Did this work correctly in an earlier version?
No / Don't know
### Operating System
Windows
### JDK
21.0.1
### Apache NetBeans packaging
Apache NetBeans platform, FoAN provided installer
### Anything else
_No response_
### Are you willing to submit a pull request?
No
Contributor guide
Research direction
Start by reproducing the issue in Apache NetBeans 27 with the PHP formatter's “After function” blank-line setting set to 1, using an abstract method. Compare the expected and actual formatting shown in the issue; done means an abstract function declaration is followed by the configured blank line.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100