Skip to content

build(deps): allow php-di ^7.0 - #6

Merged
kevin-benton merged 1 commit into
mainfrom
php-di-7
Nov 5, 2026
Merged

kevin-benton merged 1 commit into
mainfrom
php-di-7

Conversation

@kevin-benton

Copy link
Copy Markdown

Description

Changes the php-di/php-di constraint from ^6.3 to ^6.3 || ^7.0.

Laravel 13 apps couldn't install php-di 6.4 next to laravel/serializable-closure v2, so Composer fell back to php-di 6.3.5. That version pulls in the abandoned opis/closure, which prints deprecation warnings on PHP 8.4. php-di 7 works with serializable-closure v1 and v2.

I resolved the lock with PHP 8.3.22. These packages changed:

  • php-di/php-di 6.4.0 → 7.1.1
  • laravel/serializable-closure v1.3.5 → v2.1.0
  • php-di/invoker 2.3.4 → 2.3.7
  • psr/container 1.1.2 → 2.0.2
  • php-di/phpdoc-reader removed (php-di 7 doesn't need it)

Testing

  • composer validate and composer check-platform-reqs --lock pass on PHP 8.3; the only missing requirement is ext-xdebug, which is dev-only.
  • phpunit: 107 tests, 10 errors, the same result as on main. All 10 errors are an existing nette/php-generator problem (ITestActor cannot be represented with ClassType) in DynamicGenerator/FileGenerator. php-di isn't involved, so I'll fix that separately.

🤖 Generated with Claude Code

@kevin-benton
kevin-benton merged commit 2776d8e into main Nov 5, 2026
3 of 5 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