-
Notifications
You must be signed in to change notification settings - Fork 696
Closed
Description
See Roave/infection-static-analysis-plugin#502 / https://github.com/Roave/infection-static-analysis-plugin/actions/runs/13572044993/job/37939307832?pr=502 :
<snip>
- Downgrading symfony/polyfill-php84 (v1.31.0 => v1.29.0)
<snip>
6) Roave\InfectionStaticAnalysisTest\Psalm\RunStaticAnalysisAgainstMutantTest::testWillConsiderMutantOfAlreadyReferencedScannedClassAsValid
Error: Call to undefined function array_any()
/github/workspace/vendor/vimeo/psalm/src/Psalm/Internal/Type/TypeCombiner.php:1267
<snip>
According to ec986c5, the dependency on symfony/polyfill-php84 got relaxed from ^1.31 to * (deathstar: never ever ever ever ever use it, really @_@ )
Line 46 in 1361cd3
| "symfony/polyfill-php84": "*" |
Without getting into the details of a library using such a polyfill (this package is both a library and a "type": "project", so it's a gray area), the dependency should be restricted to only the working range.
The array_ functions in use in Psalm were introduced in symfony/polyfill@d2b61eb (1.30.0).
The correct range to use is therefore: "symfony/polyfill-php84": "^1.31.0"
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels