E0348: unexpected '?' in type; use '| void' to make an optional type
Using a question mark as a prefix or suffix to make parameter types optional is invalid. Instead add a second 'void' type to the parameter.
To fix this warning, we need to replace the '?' suffix or prefix with the expression '| void'
Documentation for other errors