MissingReturnType Emitted when a function doesn't have a return type defined <?php function foo() { return "foo"; } Correct with: <?php function foo() : string { return "foo"; }