I've managed to fix the issue. It turns out I had mistakenly added a tab character before an opening <?php namespace... in one of Laravel's files while digging into the framework.
To find the file in question, I temporarily modified Namespace.php on the line that echoes the error "Namespace declaration statement..." and did a var_dump there for the $stmts variable, which showed me the file that was problematic.
Hope this helps anyone that might run into something similar in the future.
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us