Skip to content

[PHP] Override hint should not display for constructor #8334

@NReib

Description

@NReib

Apache NetBeans version

Apache NetBeans 25

What happened

The following leads to a compile error in PHP - so we should not display the Add Override hint for constructors.

<?php
/**
 * @author nils
 */
class newPHPClass{

	public function __construct(){

	}
}

/**
 * @author nils
 */
class newPHPClass1 extends newPHPClass{

	#[\Override]
	public function __construct(){

	}
}

Language / Project Type / NetBeans Component

No response

How to reproduce

x

Did this work correctly in an earlier version?

No / Don't know

Operating System

Mageia

JDK

x

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

No response

Are you willing to submit a pull request?

Yes

Metadata

Metadata

Assignees

Labels

PHP[ci] enable extra PHP tests (php/php.editor)kind:bugBug report or fix

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions