Open
Description
e.g. https://github.com/php-stubs/wordpress-stubs/blame/v6.6.2/functionMap.php#L69
The correct type would be string|null
If you think it doesn't matter, try this:
function foo(): string|void {
if ( rand(0, 1 ) ) {
return;
}
return 'foo';
}
Metadata
Metadata
Assignees
Labels
No labels