Closed chrisharrison closed 6 years ago
Added a helper function to nullable to quickly create null backed nullables.
We've found ourselves doing the following rather frequently: $null = Nullable::fromNative(null);
$null = Nullable::fromNative(null);
Just to be (slightly) quicker, but also to better show intent, this PR introduces the following shorthand: $null = Nullable::null();
$null = Nullable::null();
Added a helper function to nullable to quickly create null backed nullables.
We've found ourselves doing the following rather frequently:
$null = Nullable::fromNative(null);
Just to be (slightly) quicker, but also to better show intent, this PR introduces the following shorthand:
$null = Nullable::null();