Support the ongoing development of →
Installation Configuration
Last updated 1 year ago.

Hi again,

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.

Last updated 1 year ago.

Thank ZiadSalah,you have really helped


You are welcome!


Sign in to participate in this thread!


Your banner here too?

ZiadSalah ziadsalah Joined 26 May 2014


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.