Skip to content

Implemented NativeTypeExpr#4302

Merged
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:native-type
Sep 8, 2025
Merged

Implemented NativeTypeExpr#4302
ondrejmirtes merged 2 commits intophpstan:2.1.xfrom
staabm:native-type

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Sep 8, 2025

as discussed in #4294 (comment) we add a new VirtualNode type which can carry a native-type in tandem with a phpdoc type.

before this PR, we only had TypeExpr which was not able to provide 2 types, but just a single one.

so this PR fixes a few shortcomings, which we accepted with a recent change in 4702c2b

@ondrejmirtes
Copy link
Copy Markdown
Member

It seems like two more issues are getting fixed.

@ondrejmirtes ondrejmirtes merged commit 22d340b into phpstan:2.1.x Sep 8, 2025
448 of 455 checks passed
@ondrejmirtes
Copy link
Copy Markdown
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