Skip to content

Monthly dependency maintenance (November 2026) - #7091

Merged
ondrejmirtes merged 4 commits into
2.3.xfrom
deps-maintenance-2026-11
Nov 16, 2026
Merged

ondrejmirtes merged 4 commits into
2.3.xfrom
deps-maintenance-2026-11

Conversation

@ondrejmirtes

@ondrejmirtes ondrejmirtes commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Monthly dependency maintenance. No major version upgrades this month; every change is a patch or minor release.

The compiler and Box lockfiles and the phar.yml action pins are in a separate PR, #7092, so that "Checksum PHAR" and "PHAR Prefix Diff" can check that those changes alone leave the PHAR unchanged. This PR changes root vendor code, which is meant to change the PHAR.

Updated

  • GitHub Actions:
    • step-security/harden-runner 2.22.4
    • github/codeql-action 4.39.3
    • astral-sh/setup-uv 10.3.3
    • peter-evans/create-pull-request 8.1.3
    • crate-ci/typos 1.52.2 (finds nothing new in src/ or README.md)
    • TypedDevs/bashunit 0.53.0
    • ramsey/composer-install's comment now says 4.0.0, its real tag; the SHA is unchanged.
    • All other actions are on their latest release, and every pinned SHA matches its version comment.
  • Root composer.lock (constraints unchanged):
    • composer/semver 3.6.0
    • guzzlehttp/psr7 2.13.3
    • symfony/console 5.4.55 (both patches still apply)
    • symfony/deprecation-contracts 3.8.1
    • symfony/polyfill-php85 1.44.0
    • dev only: phpunit 11.5.58, phpstan-phpunit 2.1.2 (20 commits ahead of the previously locked 2.1.x-dev ref)
  • tests/composer.lock: PHPUnit 11.5.58 and Symfony 7.4.2x.
  • apigen, apigen/infra, changelog-generator, issue-bot: lock updates within their constraints. apigen/apigen master has no commits beyond the pinned SHA.

PHP 7.4 compatibility of the PHAR

  • Every changed runtime vendor file was linted on PHP 7.4.33. The set of files that don't parse on 7.4 is unchanged: the same 2 PHP 8-only files that 7.4 never loads.
  • The changed runtime code is all 7.4-safe:
    • polyfill-php85 array_last() uses array_key_last() only behind PHP_VERSION_ID >= 70300.
    • semver adds a constraint cache.
    • psr7 changes a header-parsing regex.
  • I built the PHAR locally from this PR combined with Update compiler and Box dependencies (November 2026) #7092, the same way phar.yml does on PHP 8.2: compiler tests, compiler PHPStan, prepare, box compile, resign, and the turbo version check. Then I ran it on PHP 7.4.33:
    • --version works.
    • Parallel analysis of 61 files with 2 workers on 7.4 gives the same findings as on 8.4, apart from the 7.4-only function.notFound for str_contains.
    • The composer-php-version-range-7-and-8 e2e scenario, which reads require.php through composer/semver, reports the expected errors on both 7.4 and 8.4.
    • bisect --good=2.3.5 --bad=2.3.6 on 7.4 queries the GitHub API and downloads PHARs through Guzzle and psr7.

Local checks

  • make tests: OK (23856 tests, 115 skipped).
  • make phpstan and make cs: no errors.
  • name-collision passes. composer-dependency-analyser gives the same output as on the base branch.
  • apiref infra: npm run check, npm test (38 passed) and cdk synth pass.
  • compiler on PHP 8.2: phpunit and phpstan pass.
  • issue-bot on PHP 8.5: phpunit and ../bin/phpstan pass.
  • changelog-generator: phpstan passes.
  • apigen: generating the API reference gives the same output as before.
  • actionlint, zizmor 1.20.0, poutine and octoscan: same results as before.

Not adopted

Root, blocked by the PHAR's PHP 7.4 runtime (vendor code isn't downgraded):

  • nette/utils 4, php-generator 4, robot-loader 4, finder 3: need PHP 8.1+ or nette/utils 4.
  • nette/di 3.2, schema 1.3+, bootstrap 3.2: need PHP 8.0 or 8.1+.
  • nette/neon 3.4: needs PHP 8.0+, and it is pinned on purpose.
  • symfony/console, finder, process and string 6/7, and symfony/service-contracts 3: need PHP 8.1 or 8.2+. psr/container 2 is held back together with service-contracts 2.
  • cweagans/composer-patches 2: needs PHP 8.0+, and the 7.4 CI jobs run Composer with the root plugins.

Root, possible but deferred:

  • guzzlehttp/guzzle 8 (psr7 3, promises 3): declares PHP ^7.4, but it pulls in symfony/polyfill-php82, which needs a scoper and preload decision.
  • shipmonk/composer-dependency-analyser 1.8: its new ext-* analysis fails make composer-dependency-analyser until the config covers it.

Other:

  • tests: PHPUnit 12 needs PHP 8.3, and the 8.2 test jobs use tests/composer.json as is. theseer/tokenizer 2 is blocked by php-code-coverage 11.
  • compiler: Symfony 7 and nette/utils 4 are blocked because simple-downgrader 2.4.0 still requires Symfony ^5.4 and nette/utils ^3.2.5. theseer/tokenizer 2 is blocked by PHPUnit 11.
  • compiler/box: humbug/box 4.7.1 and php-scoper 0.18.20 are the latest releases, and they still require fidry/filesystem 1, reflection-docblock 5, type-resolver 1 and webmozart/assert 1. composer-patches 2 stays off to match the root.
  • issue-bot: PHPUnit 13 needs sebastian/diff 9. diff 9's Myers alignment changes about 1% of the bot's diffs, which could cause duplicate comments, and there is still no option to restore the old alignment.
  • apigen/infra:
    • TypeScript 7: tsc passes, but cdk synth fails because ts-node can't use TypeScript 7.
    • @types/node 26: CI runs Node 24.
    • The moderate minimatch advisory is in aws-cdk-lib's bundled dependencies and was there before this PR.
  • zizmor 1.32 (lint-workflows.yml pins 1.20.0): it adds 55 new code-scanning findings from new audits, mostly secrets-outside-env and unpinned-images. Bumping it is a separate hardening task.

@ondrejmirtes
ondrejmirtes force-pushed the deps-maintenance-2026-11 branch from 0aeb10d to 9778076 Compare November 16, 2026 12:17
step-security/harden-runner 2.22.4, github/codeql-action 4.39.3, astral-sh/setup-uv 10.3.3,
peter-evans/create-pull-request 8.1.3, crate-ci/typos 1.52.2, TypedDevs/bashunit 0.53.0.
ramsey/composer-install's version comment now names its real tag, 4.0.0.

Amp-Thread-ID: https://ampcode.com/threads/T-01a1820d-d5f1-765d-83b2-fba47367502e
composer/semver 3.6.0, guzzlehttp/psr7 2.13.3, symfony/console 5.4.55,
symfony/deprecation-contracts 3.8.1, symfony/polyfill-php85 1.44.0,
phpunit/phpunit 11.5.58, phpstan/phpstan-phpunit 2.1.2

Amp-Thread-ID: https://ampcode.com/threads/T-01a1820d-d5f1-765d-83b2-fba47367502e
@ondrejmirtes
ondrejmirtes force-pushed the deps-maintenance-2026-11 branch from 9778076 to e83539b Compare November 16, 2026 12:17
@ondrejmirtes
ondrejmirtes merged commit f8d6a26 into 2.3.x Nov 16, 2026
930 of 932 checks passed
@ondrejmirtes
ondrejmirtes deleted the deps-maintenance-2026-11 branch November 16, 2026 12:47
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