Closed the-turk closed 3 years ago
Good observation!
But do we actually pass true
as a default value anywhere?
Looking at the code I see all instances where we use the default
parameter are numeric settings, where the current approach isn't causing any issue.
If it's not broken, maybe we don't need to fix it :man_shrugging:
I find that Settings
helper class is a bit of a monstrosity. The __get()
magic methods should probably be removed as we're not using them. But again, until it breaks, I'm not sure it's really worth changing it.
Modified line was returning
true
everytime when thedefault
value is set totrue
and stored value is set tofalse
. This makes impossible to disable a setting which'sdefault
value istrue
.I've wanted to use the unused
__isset()
magic method.