Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
debug-phpstan
alizharb/agent-skills
claude-code
phpstan
larastan
static-analysis
generics
phpdoc
type-safety
nullability

Use when PHPStan or Larastan reports type, generic, nullability, or framework inference issues.

Install
php artisan boost:add-skill alizharb/agent-skills

Save this content to: .claude/skills/debug-phpstan/SKILL.md

# Debug PHPStan

## Workflow

1. Read the exact PHPStan message and line.
2. Identify whether the issue is a real bug, missing type, generic mismatch, or framework inference gap.
3. Prefer code-level types, typed collections, return types, and PHPDoc generics over broad ignores.
4. Use targeted ignores only when framework magic cannot be expressed safely.
5. Re-run PHPStan after each small fix.

## Verification

- `vendor/bin/phpstan analyse` passes.

## Common Mistakes

- Adding `mixed` everywhere.
- Ignoring real nullable access bugs.

Debug PHPStan

Workflow

  1. Read the exact PHPStan message and line.
  2. Identify whether the issue is a real bug, missing type, generic mismatch, or framework inference gap.
  3. Prefer code-level types, typed collections, return types, and PHPDoc generics over broad ignores.
  4. Use targeted ignores only when framework magic cannot be expressed safely.
  5. Re-run PHPStan after each small fix.

Verification

  • vendor/bin/phpstan analyse passes.

Common Mistakes

  • Adding mixed everywhere.
  • Ignoring real nullable access bugs.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin