Skip to content
Discussion options

You must be logged in to vote

Hello there, sorry for the late answer. Maybe I don't understand correctly your need, but couldn't you be using default parameter values? Something like:

public function __construct(int | null $age = null) {}

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@GMQS
Comment options

Answer selected by GMQS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants