sebastianbergmann / recursion-context

Provides functionality to recursively process PHP variables
BSD 3-Clause "New" or "Revised" License
6.52k stars 18 forks source link

Improve the generic types #29

Closed stof closed 6 months ago

stof commented 6 months ago

phpstan does not like when you have a template type for which the bound (which was mixed before due to being omitted) is not compatible with the native parameter type. Because of that, it would ignore the @psalm-template annotation and then cause issues with the @param-out type.

codecov[bot] commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 100.00%. Comparing base (4a20654) to head (85ffb7a).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #29 +/- ## =========================================== Coverage 100.00% 100.00% Complexity 16 16 =========================================== Files 1 1 Lines 37 37 =========================================== Hits 37 37 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

sebastianbergmann commented 6 months ago

Cherry-picked into 5.0 and merged to main from there.