Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error parsing file #24

Open
lewislarsen opened this issue Dec 20, 2024 · 0 comments
Open

Error parsing file #24

lewislarsen opened this issue Dec 20, 2024 · 0 comments

Comments

@lewislarsen
Copy link

Hey there,

I love the idea of your package and I feel it could be useful, however I've run into a bit of a hiccup.

When attempting to run any command on my codebase, I receive a RuntimeException with an error parsing the file relating to this specific file.

.php: Syntax error, unexpected '<' on line 27

  at vendor/bottelet/translation-checker/src/Extractor/PhpBaseClassExtractor.php:53
     49▕                 return [];
     50▕             }
     51▕             $traverser->traverse($ast);
     52▕         } catch (Exception $error) {
  ➜  53▕             throw new RuntimeException("Error parsing file {$file->getRealPath()}: {$error->getMessage()}");
     54▕         }
     55▕ 
     56▕         return array_merge(
     57▕             $this->translationKeys,

      +17 vendor frames 

  18  artisan:13
      Illuminate\Foundation\Application::handleCommand(Object(Symfony\Component\Console\Input\ArgvInput))

I am using v 1.1.2 of the package with PHP 8.4.1 on MacOS Sequioa.

Thanks, please let me know if you need any further details. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant