Repository navigation
Update dependencies and clear composer warnings - #400
Merged
Merged
Conversation
Loosen twig/twig and twig/extra-bundle from "^3.23 <3.29" to "^3.23". The upper bound was a workaround for twig 3.29 requiring an Environment argument in TemplateWrapper::unwrap(); twig 3.30 restored the optional argument, so the cap is no longer needed. The cap also blocked every security fix: twig 3.31.1 is the first 3.x release clear of the 26 advisories published on 2026-11-24, and composer could not resolve a lock file at all while the cap was in place. Refresh the lock file (56 packages updated, theseer/tokenizer removed), which also drops the PHP 8.5 "Using null as an array offset" deprecation notice that symfony/flex 2.11 printed on every composer command. Add name and description so composer validate --strict passes, and set level 9 in phpstan.neon so a plain "phpstan analyse" uses the configured paths instead of reporting "No rules detected". Fix the two test findings that exposes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
twig/twigandtwig/extra-bundlefrom^3.23 <3.29to^3.23.composer.lockwith a fullcomposer update(56 packages updated).name/descriptiontocomposer.jsonsocomposer validate --strictpasses.level: 9inphpstan.neonand fixed the two test findings that exposed.Why the twig cap was removed
The
<3.29cap was added in d93bb8e as a workaround: twig 3.29 madeTemplateWrapper::unwrap()require anEnvironmentargument, which twig-bridge 8.0.15 did not pass. Twig 3.30 restored the optional argument, so the cap is no longer needed for compatibility.The cap then became a hard blocker: twig 3.31.1 (released 2026-11-24) is the first 3.x release clear of the 26 security advisories published that day, and composer refuses to resolve any capped twig version because of them. With the cap in place,
composer updatefailed outright with 26 advisory IDs.Warning cleanup
symfony/flex2.12.0 stops the PHP 8.5 deprecation notice (Using null as an array offset) that 2.11.0 printed on every composer command.composer validate --strictnow passes with no schema errors.vendor/bin/phpstan analysewithout-lnow runs the configured paths instead of reporting "No rules detected". The two errors this surfaced were a redundantassertContainsOnlyInstancesOf()(the array is already typed) and Symfony's intentional-1trusted-header reset sentinel, which is now explicitly ignored with a reason.Verification
composer update: resolves, "No security vulnerability advisories found"composer validate --strict: validmake static-analysisand barevendor/bin/phpstan analyse: no errorsvendor/bin/phpunit --no-coverage: 138 tests, 593 assertions, OKbin/console lint:yaml config,lint:twig templates,lint:container,cache:clear: OKKnown leftover
symfony/twig-bridge 8.1.10 (latest) still calls
TemplateWrapper::unwrap()with no argument, so twig 3.30+ triggers a deprecation from vendor code. Nothing to fix in this repo until a patched twig-bridge release lands. Pinning twig below 3.30 is not an option because of the advisories above.