Closed TysonAndre closed 7 years ago
Convert ?string $x into ?string $x = null This won't work for a few cases, such as ?string $x = 'default', but works for a large fraction of cases.
?string $x
?string $x = null
?string $x = 'default'
Also, types are case insensitive.
Thanks @TysonAndre for the PR
Convert
?string $x
into?string $x = null
This won't work for a few cases, such as?string $x = 'default'
, but works for a large fraction of cases.Also, types are case insensitive.