Open maxonfjvipon opened 1 year ago
Need and object that will behave like $object ?? $default.
For instance:
$some = ...; // can be null new NumOrDefault($some, NumOf::int(0)) // if $some is null - 0 will be returned
Need and object that will behave like $object ?? $default.
For instance: