Code Inspection: Unnecessary 'return' statement
Reports unnecessary return
statements at the end of functions having the void
return type. Such statements are unnecessary and can be safely removed.
See PHP RFC: Void Return Type (php.net) for details.
Last modified: 08 December 2020