Skip to content

2.22.2

Choose a tag to compare

@koriym koriym released this 19 Jul 01:22
· 30 commits to 2.x since this release

Fixed

  • Non-instantiable concrete classes (e.g. private constructors) are no longer just-in-time bound. Requesting an unbound non-instantiable class fails with Ray\Di\Exception\Unbound instead of a bare PHP Error (Call to private ...::__construct()), which became more visible after NewInstance switched to language-level new in 2.21 (#335).

Just-in-time binding of public instantiable concrete classes at the top level is unchanged.