Always is a good practice to show what you’re returning.
But as a tip, the following are all equivalent:
function test()
{
return null;
}
function test()
{
return;
}
function test()
{
}
In all cases there for var_dump(test());
will be:
NULL