You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
SeeAnnotationToTestRule doesn't resolve imported class names #377
This reports Class "Acme\User\UserMailer" is missing @see annotation with test case class reference. Writing @see \Acme\Tests\User\UserMailerTest passes, but php-cs-fixer's fully_qualified_strict_types with import_symbols shortens it again on the next run.
The rule hands the raw tag text to is_a(), so a short name never matches:
Activity
TomasVotruba commentedon Oct 17, 2026
Thank you for your report!
We'll need an isolated failing demo link from: http://getrector.com/demo,
that way we can reproduce the bug.
Brainshaker95 commentedon Oct 18, 2026
This one is a PHPStan rule, so the Rector demo can't run it. The snippet above reproduces it with
SeeAnnotationToTestRuleenabled.TomasVotruba commentedon Oct 18, 2026
Ah, sorry, wrong repo. Can you send failing test PR with fixture then?
Brainshaker95 commentedon Oct 18, 2026
No worries! The failing fixture is up in #378.