headercat/phpstan-extension-ide-helper
Purpose Alignment:
2.2.4 aligns with PHPStan 2.2.x, reinforcing its role for teams using PHPStan 2.2+ (e.g., custom rules, custom nodes).Laravel-Specific Fit:
Composer Dependency:
dev dependency; no runtime impact.2.2.x (critical for compatibility).
<2.2 or >2.2 will break stub generation.composer.json:
"require-dev": {
"phpstan/phpstan": "^2.2",
"headercat/phpstan-extension-ide-helper": "^2.2"
}
Build/IDE Integration:
2.2.4 may introduce internal API changes requiring stub updates. Test IDE behavior post-update.Stale Stubs (Amplified):
2.2.x may introduce breaking internal API changes (e.g., renamed classes/namespaces).2.2.x updates.2.2.x releases).IDE-Specific Quirks:
2.2.4 may alter PHAR structure, causing IDEs to misinterpret stubs.False Positives/Negatives:
2.2.x?
^2.2 to avoid stub drift.2.2.4 for stability?2.2.x releases?phpstan/phpstan-src (manual clone) or other generators like vimeo/psalm.PHP/Laravel Compatibility:
2.2.x (breaking change from prior versions).Toolchain Dependencies:
^2.2.0 + this package ^2.2.0.phpstan/extension-installer).composer show phpstan/phpstan).^2.2.0 (may require rule adjustments).composer.json:
"require-dev": {
"phpstan/phpstan": "^2.2",
"headercat/phpstan-extension-ide-helper": "^2.2"
}
composer update.intelephense.config.json:
{
"phpstan": {
"pharStubPaths": ["vendor/phpstan/phpstan/bin/phpstan.phar"]
}
}
phpstan analyse to confirm no runtime issues.PHPStan Versions:
2.2.x.
3.0 will break stubs (no backward compatibility).2.2.4 for stability:
"phpstan/phpstan": "2.2.4",
"headercat/phpstan-extension-ide-helper": "2.2.4"
IDE Support:
2.2.x updates, trigger stub regeneration (manual or automated).File > Invalidate Caches).2.2.x releases.2.2.x updates).2.2.x:
name: Update PHPStan Stubs
on:
schedule:
- cron: '0 0 * * *' # Daily
workflow_dispatch:
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/github-script@v6
with:
script: |
await github.rest.issues.create({
owner: 'headercat',
repo: 'phpstan-extension-ide-helper',
title: 'Trigger stub regeneration',
body: 'Please regenerate stubs for PHPStan 2.2.x'
})
phpstan/phpstan to 2.2.4 to avoid stub drift.3.0 (will break compatibility).Troubleshooting:
phpstan analyse.composer show headercat/phpstan-extension-ide-helper to verify version.Documentation:
^2.2.0).How can I help you explore Laravel packages today?