Skip to content

IntersectionType: Extract describeType() method#4776

Merged
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
staabm:extract
Jan 17, 2026
Merged

IntersectionType: Extract describeType() method#4776
ondrejmirtes merged 1 commit intophpstan:2.1.xfrom
staabm:extract

Conversation

@staabm
Copy link
Copy Markdown
Contributor

@staabm staabm commented Jan 17, 2026

No description provided.

public function describe(VerbosityLevel $level): string
{
return $level->handle(
function () use ($level): string {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extract inline callable into separate method

@ondrejmirtes ondrejmirtes merged commit 355958d into phpstan:2.1.x Jan 17, 2026
622 of 646 checks passed
@ondrejmirtes
Copy link
Copy Markdown
Member

Thank you!

@staabm staabm deleted the extract branch January 17, 2026 20:18
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