The RFC mentions that this will now become valid:

function foo(): void {
    return null;
}

But what about the opposite:

function foo(): null {
    return;
}

or what Larry was trying to suggest:

function foo(): null {
    print 'test';
}

$val = foo();

Reply via email to