NullableReturnStatement# Emitted if a return statement contains a null value, but the function return type is not nullable <?php function foo() : string { if (rand(0, 1)) { return "foo"; } return null; // emitted here } Get Psalm news by email News about Psalm, a few emails a month. You can unsubscribe at any time. Email Subscribe I accept the privacy policy