Skip to content

Allow literal string dynamic property#295

Merged
ondrejmirtes merged 1 commit intophpstan:2.0.xfrom
vrana:dynamicName
Jan 27, 2026
Merged

Allow literal string dynamic property#295
ondrejmirtes merged 1 commit intophpstan:2.0.xfrom
vrana:dynamicName

Conversation

@vrana
Copy link
Contributor

@vrana vrana commented Jan 27, 2026

In JSON-LD, there are property names like @type which are accessible only via $ld->{'@type'} in PHP. These are not dynamic property accesses and shouldn't be reported as such.

@ondrejmirtes ondrejmirtes merged commit 1ed9e62 into phpstan:2.0.x Jan 27, 2026
31 checks passed
@ondrejmirtes
Copy link
Member

Thank you!

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.

2 participants