Repository navigation
Fix master CI - #14689
Fix master CI#14689
Conversation
…json, give MissingExtensionRequirement a shortcode of its own
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit 855cfaf. Configure here.
| } | ||
|
|
||
| if (!$composer_json) { | ||
| if (!$composer_json || !is_array($composer_json)) { |
There was a problem hiding this comment.
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)
Reviewed by Cursor Bugbot for commit 855cfaf. Configure here.
There was a problem hiding this comment.
Fixed in eb14718: getPHPVersionFromComposerJson() now rejects only a composer.json that isn't a JSON object, so {} is accepted there too (PsalmEndToEndTest::testEmptyComposerJsonIsAValidProject).
✅ Performance: unchanged · Types: unchanged
How to read this table
head ffccf32 · base be56c19 (merge-base) · workflow run |
…corrected MissingExtensionRequirement shortcode in the BC check


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