The problem is parsing XDebug, so the closing bracket is not executed after the return statement, since the code leaves this function and does not actually close. This is a known issue in the XDebug / PHP / PHPUnit parsing / execution space.
source
share