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

False syntax error on static variable assignment with require #8086

Closed
sk757a opened this issue Dec 23, 2024 · 1 comment
Closed

False syntax error on static variable assignment with require #8086

sk757a opened this issue Dec 23, 2024 · 1 comment
Assignees
Labels
duplicate kind:bug Bug report or fix PHP [ci] enable extra PHP tests (php/php.editor)

Comments

@sk757a
Copy link

sk757a commented Dec 23, 2024

Apache NetBeans version

Apache NetBeans 24

What happened

Netbeans shows syntax error on correct source line:

Syntax error
unexpected:	require
after:	=
expected:	integer, double, identifier, String, String, array, __CLASS__, __TRAIT__, __METHOD__, __FUNCTION__, __LINE__, __FILE__, <<<"...", __NAMESPACE__, __DIR__, define, +, -, !, ~, [, new, static, (, <<<'...'

Language / Project Type / NetBeans Component

PHP project

How to reproduce

function foo()
{
    static $bar = require 'bar.php';
}

Did this work correctly in an earlier version?

No / Don't know

Operating System

Windows 10 x64

JDK

Eclipse Temurin 21

Apache NetBeans packaging

Apache NetBeans binary zip

Anything else

PHP 8.3.14

Are you willing to submit a pull request?

No

@sk757a sk757a added kind:bug Bug report or fix needs:triage Requires attention from one of the committers labels Dec 23, 2024
@troizet troizet added the PHP [ci] enable extra PHP tests (php/php.editor) label Dec 23, 2024
@junichi11 junichi11 self-assigned this Dec 23, 2024
@junichi11
Copy link
Member

Duplicate: #8073

@junichi11 junichi11 added duplicate and removed needs:triage Requires attention from one of the committers labels Dec 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate kind:bug Bug report or fix PHP [ci] enable extra PHP tests (php/php.editor)
Projects
None yet
Development

No branches or pull requests

3 participants