Skip to content

Fix Undefined property: Microsoft\PhpParser\Node\ArrayElement::$memberName #12

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

N1ebieski
Copy link

@N1ebieski N1ebieski commented Mar 9, 2025

Fixes laravel/vs-code-extension#278, laravel/vs-code-extension#363

$child->getParent() may return Node without $memberName property.

$child->getParent() may return null.

This PR adds an additional check and a null-safe operator.

@GhostvOne
Copy link

Hi, anyway to push this MR asap please ? @joetannenbaum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Undefined property: Microsoft\PhpParser\Node\ArrayElement::$memberName
2 participants