Skip to content

Fix master CI - #14689

Merged
danog merged 4 commits into
vimeo:masterfrom
danog:fix-master-ci
Nov 23, 2026
Merged

danog merged 4 commits into
vimeo:masterfrom
danog:fix-master-ci

Conversation

@danog

@danog danog commented Nov 23, 2026

Copy link
Copy Markdown
Collaborator

Master CI fails: Psalm can't load a project whose composer.json is {}, MissingExtensionRequirement shares its shortcode with TaintedRedirect, and self-analysis and code style report the new extension code.

…json, give MissingExtensionRequirement a shortcode of its own
@danog danog added the release:fix The PR will be included in 'Fixes' section of the release notes label Nov 23, 2026

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 855cfaf. Configure here.

Comment thread src/Psalm/Config.php Outdated
}

if (!$composer_json) {
if (!$composer_json || !is_array($composer_json)) {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty composer.json still throws

Medium Severity

getPHPVersionFromComposerJson still rejects a valid {} composer.json because an empty decoded array is treated as invalid, while config load now accepts it via getLowestPhpVersion. A project can load yet crash later when initPhpVersion or getPhpVersion reads Composer again.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 855cfaf. Configure here.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in eb14718: getPHPVersionFromComposerJson() now rejects only a composer.json that isn't a JSON object, so {} is accepted there too (PsalmEndToEndTest::testEmptyComposerJsonIsAValidProject).

@github-actions

github-actions Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

✅ Performance: unchanged · Types: unchanged

Project Memory (MB) Wall (s) Issues Weighted (types) Taint Dead code
✅ laravel 1 769 90.5 $\color{gray}{\textsf{+0.8\%}}$ 25 721 53 054 682 0
✅ symfony 3 629 291.1 $\color{gray}{\textsf{-1.7\%}}$ 51 744 100 580 1 572 0
✅ doctrine-orm 380 20.9 $\color{gray}{\textsf{-0.4\%}}$ 3 481 6 153 0 0
✅ psl 618 27.2 $\color{gray}{\textsf{-0.4\%}}$ 1 395 5 637 1 0
✅ phpunit 456 20.6 $\color{gray}{\textsf{+0.5\%}}$ 1 735 3 418 18 0
✅ php-parser 226 13.8 $\color{gray}{\textsf{-1.1\%}}$ 17 118 21 193 0 0
✅ tempest 896 37.6 $\color{gray}{\textsf{-0.9\%}}$ 5 070 10 567 252 0
✅ amphp-amp 47 1.4 29 49 0 0
✅ webmozarts-assert 273 4.2 $\color{gray}{\textsf{-0.2\%}}$ 575 2 714 0 0
✅ guzzle-promises 46 1.6 $\color{gray}{\textsf{+2.6\%}}$ 156 436 2 0
✅ monolog 136 5.5 917 2 491 10 0
✅ drupal 4 844 236.4 $\color{gray}{\textsf{+0.4\%}}$ 97 838 169 727 575 0
✅ wordpress 2 041 141.2 $\color{gray}{\textsf{+2.0\%}}$ 143 516 678 190 461 1
Total 15 361 891.9 $\color{gray}{\textsf{-0.1\%}}$ 349 295 1 054 209 3 573 1
How to read this table
  • Memory: Psalm's own peak figure, threads=1. More than +5 % fails, unless the PR changes composer.json.
  • Wall: base and head run on the same runner; ±10 % is noise. Above +10 % warns, never fails. re-run: a reversed second run was taken and the faster kept.
  • Issues: head count over all categories, then $\color{red}{\textsf{+added}}$ $\color{green}{\textsf{-removed}}$ against base.
  • Weighted (types): type issues weighted by error level (levels 1–8 as is, always-errors 10, strictness checks 1). Taint and dead-code issues are not weighed. The projects' own code is pinned and their dependencies resolve identically for base and head, so a change means Psalm reports more, fewer or differently serious issues. A rise is not necessarily a regression.
  • Taint: head count of Tainted* issues, then $\color{orange}{\textsf{+added}}$ $\color{orange}{\textsf{-removed}}$ against base. Both are orange as either direction needs review: more can be new detection or false positives, fewer can be fixed false positives or lost detection.
  • Dead code: head count of unused-code issues, shown only when a run reported some (findUnusedCode). More is red, fewer is green.
  • Total: sum over the projects compared on both sides. Its wall time warns above +5 % (±5 % is noise); the other thresholds apply per project.
  • Colors: $\color{red}{\textsf{red}}$ past a fail or warn threshold (or more issues), $\color{green}{\textsf{green}}$ an improvement past noise (or fewer issues), $\color{orange}{\textsf{orange}}$ needs review, $\color{gray}{\textsf{gray}}$ noise.
  • Performance: regressed if a head run crashed or timed out or a memory or wall delta is red, else improved if one is green, else unchanged. Its icon is the check result: ❌ fail · ⚠️ warn · ✅ pass; the icon next to each project is that project's result, 💥 = not comparable: base crashed or timed out (counts as ⚠️).
  • Types (heading): direction of the total weighted change, increased · decreased · unchanged. Taint and Dead code (heading): added and removed counts, present only when non-zero. Informational, never fails the check.

head ffccf32 · base be56c19 (merge-base) · workflow run

@danog
danog merged commit c532255 into vimeo:master Nov 23, 2026
72 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release:fix The PR will be included in 'Fixes' section of the release notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant