SyntaxFix
Write A Post
Hire A Developer
Questions
As per the documentation on the return statement, return may only occur syntactically nested in a function definition. The same is true for yield.
return
yield