djoos / Symfony-coding-standard

Development repository for the Symfony coding standard
MIT License
401 stars 102 forks source link

Undefined index: parenthesis_opener in .../Symfony/Sniffs/Errors/ExceptionMessageSniff.php on line 62 #106

Closed pvlrmnnk closed 6 years ago

pvlrmnnk commented 7 years ago

Code example:

/**
 * {@inheritdoc}
 */
public function process(ContextInterface $context, Delegate $delegate): void
{
    try {
        $delegate->process($context);
    } catch (\Throwable $t) {
        // TODO: Implement later

        throw $t;
    }
}

Error:

FILE: /.../Middleware/ExceptionInterceptorMiddleware.php
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
FOUND 1 ERROR AFFECTING 1 LINE
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 1 | ERROR | An error occurred during processing; checking has been aborted. The error message was: Undefined index: parenthesis_opener in
   |       | /.../vendor/escapestudios/symfony2-coding-standard/Symfony/Sniffs/Errors/ExceptionMessageSniff.php on line 62
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
notrix commented 7 years ago

👍 same issue here

ft-1408 commented 6 years ago

Same issue for me

MatthieuSarter commented 6 years ago

Same for me.

There are indeed two issues :

I wrote a fix, I will submit a pull request.

COil commented 6 years ago

Any status about this issue?

djoos commented 6 years ago

Sorry, I'm a bit swamped with work at the moment. When things calm down, I'll get into the issues and PRs here...

If someone can give Matthieu's fix a go and feed back here, that will be helpful in getting the PR out quicker!

COil commented 6 years ago

@djoos Just tested @MatthieuSarter the fix and I don't have the error anymore.

COil commented 6 years ago

Hello @djoos , any news concerning this? :thinking:

I have tested and it works.

djoos commented 6 years ago

Thanks for the nudge @COil - merged & tagged as 3.0.1