Closed SpadXIII closed 1 year ago
I'm out of time for today, so can't make an actual PR. I can make a PR in a few days though :)
Ah ha! You are correct. Good catch. I'll wait for a PR, or until I am next bored and feel like fixing bugs. :smile: Thanks.
I was just checking out this cool little thing and ran into a little issue: when you use falsy default values (empty string, zero, null, false) they won't get set. This is because
getDefaultValueFromConstructor
returns the actual value which is then implicitly checked in an if-statement.A solution could be to extract that check into a
hasDefaultValueFromConstructor
method and letgetDefaultValueFromConstructor
only get the actual value.