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 that halts checking #187

Open
noldona opened this issue Feb 11, 2021 · 1 comment
Open

Error that halts checking #187

noldona opened this issue Feb 11, 2021 · 1 comment

Comments

@noldona
Copy link

noldona commented Feb 11, 2021

When trying to use the coding standard, I am getting this error that halts the linting.

  1 | ERROR   | An error occurred during processing; checking has been aborted. The error message was: Undefined index: return_type_token in
    |         | /home/rjones/.config/composer/vendor/escapestudios/symfony2-coding-standard/Symfony/Sniffs/Functions/ReturnTypeSniff.php on line 62
    |         | (Internal.Exception)

Excluding the rule allows the linting to continue. It is probably related to the fact that the code I am trying to lint is a 20 year old legacy application that was not coded to any standards. Specifically, most functions do not actually have a return type declared.

@mmoll
Copy link
Contributor

mmoll commented Feb 22, 2021

Without a code snippet that reproduces the crash, it's going to be impossible to investigate further.

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

2 participants