Skip to content

Fix CI: safe lock scripts, remove tests/ from CS Fixer#27

Merged
pamil merged 2 commits into
masterfrom
fix/ci-lock-scripts
Jun 12, 2026
Merged

Fix CI: safe lock scripts, remove tests/ from CS Fixer#27
pamil merged 2 commits into
masterfrom
fix/ci-lock-scripts

Conversation

@pamil

@pamil pamil commented Jun 12, 2026

Copy link
Copy Markdown
Member

Summary

  • Fix lock-symfony-version.sh and lock-behat-version.sh: replaced the cat <<< $(jq ... < file) > file pattern (which could truncate the file before jq reads it) with jq ... < file > file.tmp && mv file.tmp file — safe and atomic
  • Fix jq expression in lock-symfony-version.sh: the original expression used .key after piping the key through |, which caused Cannot index string with string "key" — fixed by capturing .key as $k and using $k in both test() calls
  • Remove tests/ from .php-cs-fixer.dist.php: the directory no longer exists (tests are provided by friends-of-behat/test-context)

Fixes the broken build from the #26 merge: https://github.com/FriendsOfBehat/ServiceContainerExtension/actions/runs/27420597476

🤖 Generated with Claude Code

pamil and others added 2 commits June 12, 2026 16:09
- Replace unsafe cat/herestring redirection with jq > .tmp && mv
  pattern to avoid truncating composer.json before jq reads it
- Fix jq expression in lock-symfony-version.sh: use .key as $k to
  avoid indexing a string with .key after a pipe
- Remove tests/ from .php-cs-fixer.dist.php (directory no longer exists)

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
- Use PHP attributes in FeatureContext (Behat 4 dropped docblock support)
- Remove Behat 3.31 + Symfony 8.x combos (incompatible: Behat 3.31
  requires symfony/config ^5.4||^6.4||^7.0)
- Remove PHP 8.3 + Symfony 8.x combos (Symfony 8.0+ requires PHP >=8.4)
- Add PHP 8.5 to stable (Behat 3.31 + Symfony 7.4) and all Behat 4 rows

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
@pamil pamil merged commit 394a8a9 into master Jun 12, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant