Skip to content

Conversation

@ondrejmirtes
Copy link
Member

@ondrejmirtes ondrejmirtes commented Jan 28, 2026

Closes phpstan/phpstan#10771

These changes make PhpDocInheritanceResolver completely disappear from the Blackfire profile:

Screenshot 2026-01-28 at 18 03 51

There are some failing tests but I created a PR so I can look at diffs comfortably and implement again what I deleted.

@ondrejmirtes ondrejmirtes force-pushed the phpdoc-inherit-resolver branch 8 times, most recently from a5cbeeb to 687df1e Compare January 30, 2026 12:06
@ondrejmirtes ondrejmirtes marked this pull request as ready for review January 30, 2026 12:13
@phpstan-bot
Copy link
Collaborator

This pull request has been marked as ready for review.

@ondrejmirtes ondrejmirtes force-pushed the phpdoc-inherit-resolver branch from 515a43d to 2452137 Compare January 30, 2026 12:16
@ondrejmirtes ondrejmirtes changed the title Rework PhpDocInheritanceResolver to use reflection more and not work … Rework phpDoc inheritance to resolve through reflection instead of re-walking the hierarchy Jan 30, 2026
@ondrejmirtes ondrejmirtes merged commit d584c6e into 2.1.x Jan 30, 2026
92 checks passed
@ondrejmirtes ondrejmirtes deleted the phpdoc-inherit-resolver branch January 30, 2026 12:16
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.

Method should return class-string<T of Template> but returns class-string<T of Template>

2 participants