Release candidate for PHP-DI 7.0 planned for next week.
- support PHP 8.0 and up
- #738 support PHP 8 attributes for injections: welcome
#[Inject]
to replace@Inject
! - drop support for
@Inject
used with phpdoc annotations -> only native PHP types are supported now
That makes PHP-DI simpler, faster and lighter (no need for the PhpDocReader package) - typed everything that can be typed
- PSR-11 1.2 & 2.0 support
Full migration guide is available here: https://github.com/PHP-DI/PHP-DI/blob/8948ffbc43f3e19c66d908593b6a94b2fc1fe6f6/doc/migration/7.0.md#L17-L16