2.22.2
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\Unboundinstead of a bare PHPError(Call to private ...::__construct()), which became more visible afterNewInstanceswitched to language-levelnewin 2.21 (#335).
Just-in-time binding of public instantiable concrete classes at the top level is unchanged.