Why I ma getting this error and how can I resolve it ?
Fatal error: Namespace declaration statement has to be the very first statement or after any declare call in the script in C:\xampp\htdocs\magento2\vendor\magento\framework\View\Element\Template\File\Validator.php on line 6
Hello @testnathco5024
In php syntax, You should use namespace in the first line.
Can you just open that file and check namespace [PHP_CLASS_PATH];
It should be right after the <?php tag starting.
Hope it helps.
Ensure that your code starts like -
<?php namespace Vendor\Module\Folder\Folder;
still the error is there in mine