vscode-wordpress-hooks
vscode-wordpress-hooks copied to clipboard
Additional type declarations in PHP 8
PHP 8 allows unions in type declarations, eg:
function my_function( Foo|Bar $param )
It also introduces false
as a type (although not true
because ¯\_(ツ)_/¯
).
For anyone writing code for PHP 8 only, it would be useful to allow union types and false
to be expressed in the type declarations.
More info: https://php.watch/versions/8.0/union-types