You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
nickvergessen
changed the title
Fields with numeric default value are incorrectly marked as required
Fields with numeric consts default value are incorrectly marked as required
Feb 25, 2025
Ignore my deleted comment, I didn't read the issue correctly.
Because we can't parse the default value, we treat it like there is no default value.
I'm not sure if we should change this, but I guess we could since we not there will at least be some default value even if we don't know which one exactly.
The better way to solve this would be to support constants (both in code and phpdoc). That would make a bunch of things easier, but might require a non trivial amount of work to implement.
Because we can't parse the default value, we treat it like there is no default value.
I'm not sure if we should change this, but I guess we could since we not there will at least be some default value even if we don't know which one exactly.
The better way to solve this would be to support constants (both in code and phpdoc). That would make a bunch of things easier, but might require a non trivial amount of work to implement.
Exactly my train of thoughts :D
Okay, then let's see if we can temporarily add a "not-required" flag somehow, until consts work
Controller
Expectation
Only name is marked as required
Actual
Also fields with consts as default are marked as required
The text was updated successfully, but these errors were encountered: