Skip to content

Replace stub with bootstrapFiles for Eloquent class alias#32

Merged
firecow merged 1 commit intomainfrom
fix/use-bootstrap-instead-of-stub
Feb 24, 2026
Merged

Replace stub with bootstrapFiles for Eloquent class alias#32
firecow merged 1 commit intomainfrom
fix/use-bootstrap-instead-of-stub

Conversation

@firecow
Copy link
Copy Markdown
Member

@firecow firecow commented Feb 24, 2026

Summary

  • Replaces stubFiles with bootstrapFiles for the Eloquent class alias
  • Stubs only override PHPDocs of existing classes, they don't make classes discoverable
  • bootstrapFiles runs class_alias() which properly registers Eloquent so phpstan can find it
  • Fixes flaky class.notFound for @mixin \Eloquent in CI

Test plan

  • Verify phpstan no longer reports class.notFound for @mixin \Eloquent in CI

@firecow firecow self-assigned this Feb 24, 2026
@firecow firecow merged commit 8cf98f5 into main Feb 24, 2026
2 checks passed
@firecow firecow deleted the fix/use-bootstrap-instead-of-stub branch February 24, 2026 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant