Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Settings without Default Values #135

Closed
mprythero opened this issue May 22, 2022 · 2 comments
Closed

Settings without Default Values #135

mprythero opened this issue May 22, 2022 · 2 comments

Comments

@mprythero
Copy link

Is there a way around the requirement for default values to leave some null? There are some settings fields that aren't filled out, and I would like the option of not having to have a default value for everything when some are not required.

@gavinhewitt
Copy link

I came here for the same thing :-)

@gavinhewitt
Copy link

Is there a way around the requirement for default values to leave some null? There are some settings fields that aren't filled out, and I would like the option of not having to have a default value for everything when some are not required.

Silly us. When you change public string $something; to public ?string $something; of course. Doh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants