Skip to content

Support Symfony Process 6.4, 7 and 8 on PHP 8.1+

Latest

Choose a tag to compare

@aminyazdanpanah aminyazdanpanah released this 23 Sep 21:29
9970eda

#21

Summary

  • Widen symfony/process to ^5.4|^6.4|^7.0|^8.0 so the library installs alongside current Symfony applications (it currently blocks installation in any Symfony 6.4+/7.x project).
  • Raise the PHP floor to >=8.1 and move phpunit/phpunit to ^10.5|^11.0.
  • Add int / \Traversable return types to the Countable / IteratorAggregate implementations in Media/AnalysisStream, removing the PHP 8.1+ deprecation notices.
  • Add a phpunit.xml.dist so vendor/bin/phpunit runs the suite without arguments.

No runtime behaviour changes: Process already passes the command as an array, and the Symfony\Component\Process\Process constructor and ExecutableFinder APIs it uses are unchanged across these versions.

Test plan

  • Full suite (20 tests, 46 assertions) passes on PHP 8.5.8 with symfony/process 7.4.19, no deprecations
  • Full suite passes on PHP 8.5.8 with symfony/process 8.1.7
  • Ran against Shaka Packager v3.9.3 (osx-arm64)
  • Manual check: raw-key cbcs packaging with --protection_systems FairPlay,Widevine and --hls_key_uri produces one Widevine and one FairPlay EXT-X-KEY per media playlist

🤖 Generated with Claude Code

https://claude.ai/code/session_01SxwPbbGY83jR1nCPUe6Syf