Releases: PHP-DI/PHP-DI
Releases · PHP-DI/PHP-DI
7.0.6
What's Changed
- Fix wildcard definition global namespace matching any namespace by @Micr0mega in #862
- Update .gitattributes by @williamdes in #863
- Fix write proxies regression by @radar3301 in #868
New Contributors
- @Micr0mega made their first contribution in #862
- @williamdes made their first contribution in #863
- @radar3301 made their first contribution in #868
Full Changelog: 7.0.5...7.0.6
7.0.5
7.0.4
What's Changed
- Fix public readonly property injection by @kocsismate in #860
Full Changelog: 7.0.3...7.0.4
7.0.3
What's Changed
- Fix
useAttributes
missing attribute by @lcharette in #850 - Add note about class import on upgrade guide by @lcharette in #851
- Fix build by @mnapoli in #857
- Fix injection of readonly promoted properties by @apeschar in #856
New Contributors
- @lcharette made their first contribution in #850
- @apeschar made their first contribution in #856
Full Changelog: 7.0.2...7.0.3
7.0.2
What's Changed
- ContainerBuilder: fallback typehints for PhpStorm by @hemberger in #849
Full Changelog: 7.0.1...7.0.2
7.0.1
What's Changed
- CompiledContainer: match Container interface by @hemberger in #843
- ContainerBuilder: template on container class by @hemberger in #842
New Contributors
- @hemberger made their first contribution in #843
Full Changelog: 7.0.0...7.0.1
7.0.0
Blog post 👉 https://php-di.org/news/23-php-di-7-0-released.html
PHP-DI 7 is a maturation of v6 to support modern PHP versions and their new features:
- PHP 8.0 and greater is supported
@Inject
phpdoc annotations have been replaced by the native PHP attribute#[Inject]
- PSR-11 2.0 compatibility
- The codebase and the API exposed are now much more typed (thanks to the new PHP features)
If you are migrating from a 6.x version, check out the detailed migration guide.
The documentation shown on php-di.org is now for the 7.0 version, the 6.x documentation can be found here.
7.0.0-rc1
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
6.4.0
PHP-DI now requires PHP 7.4 or greater.
- Improve PHP 8.1 support (#791): switch closure serializer for PHP 8.1 support by @shadowhand and @mnapoli in #808 and #811
Full Changelog: 6.3.5...6.4.0