-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
psalm cache bug with constructor property promotion #10080
Comments
Hey @ging-dev, can you reproduce the issue on https://psalm.dev ? |
Can you provide a reproducer repo? I tried this in Psalm's own repo, and errors were reported. |
https://github.com/ging-dev/psalm-cache-reproduce Here is video i reproduced it: 2023-08-03.16-26-34.mp4 |
Relevant parts from the debug log: $ vendor/bin/psalm --debug
Process plugin adjustments...
Target PHP version: 8.2 (inferred from current PHP version).
Scanning files...
1 changed files:
/home/weirdan/src/psalm/issues/psalm-cache-reproduce/src/Bug/Reproduce.php
[.....]
Parsing /home/weirdan/src/psalm/issues/psalm-cache-reproduce/src/Bug/Reproduce.php
Deep scanning /home/weirdan/src/psalm/issues/psalm-cache-reproduce/src/Bug/Reproduce.php
[.....]
Analyzing files...
Getting /home/weirdan/src/psalm/issues/psalm-cache-reproduce/src/Bug/Reproduce.php
Analyzing /home/weirdan/src/psalm/issues/psalm-cache-reproduce/src/Bug/Reproduce.php
Skipping analysis of pre-analyzed method App\Bug\Reproduce::error
[.....] |
Changes to psalm/src/Psalm/Internal/Codebase/Analyzer.php Lines 658 to 663 in c83b0c9
|
run
psalm
with cache. After, change content to:re-run
psalm
,psalm
doesn't show an error message, but an error actually existsThe text was updated successfully, but these errors were encountered: