v1.1.0 FlightPHP/Container - Support for optional constructor parameters
Constructor parameters sometimes has optional parameters, typehinted or not, but they're optional, so container could resolve that right?
Well, FlightPHP/Container 1.1.0 can :D
Example:
class MyClass {
function __construct($param = 'value') {
//
}
}
$myInstance = (new Container)->get(MyClass::class);
// Now in 1.1.0 worksFull Changelog: v1.0.6...v1.1.0